Grouping required!

43 views
Skip to first unread message

Mutassam Chaudhrey

unread,
Jun 5, 2016, 9:49:50 AM6/5/16
to ggp...@googlegroups.com
Hi,
I need to my graph to look at each of my 3 conditions separately(1, 2 and 3).I am seeing how reaction times compare to all individual trials within a condition, and hopefully with a fill of "points value". These are the codes I have used: ggplot(data)
barchart<-ggplot(data,aes(Trial.Type,RT,fill=S.Type))
barchart+stat_summary(fun.y=mean,geom="bar",position="dodge")+stat_summary(fun.data=mean_cl_normal,geom="errorbar",position=position_dodge(width=0.90),width=0.2)+labs(x="Trial.Type",y="RT",fill="S.Type").
 
From this, I have produced this graph.
However, I would like to group the conditions 1, 2 and 3, so that it is easier to compare the differences between the conditions. I would also like to add in an additional variable as a fill, points value.
 
Many thanks
 
Rplot06.png

José A. Bartolomei-Díaz

unread,
Jun 12, 2016, 1:50:57 PM6/12/16
to ggplot2
Reply all
Reply to author
Forward
0 new messages