search for: patchchoice

Displaying 2 results from an estimated 2 matches for "patchchoice".

2010 Apr 07
2
Creating two lines of best fit on a scatter plot
Hello I am trying to plot two lines of best fit on a scatter plot. I'm plotting number of visits (y) against personality (x), half the plots are blue for patchchoice one and the other plots are red for patchchoice two (these options come from one factor, see below) . So i need a line for the patch ones and another line for the patch twos. How would i go about doing this? I know i may need to use the subset command, but I'm not entirely sure how to...
2010 Apr 09
2
error bars on barplot
...1087 28 6 1 PM 0 1087 13 3 2 AM 0 1087 121 0 2 PM 0 1046 121 0 1 AM 1 1046 121 0 1 PM 1 i've plotted the means like this: by(numvisits,patchchoice,summary) numvisits.means<- by(numvisits,list(time=time,patchchoice=patchchoice),mean) numvisits.means barplot(numvisits.means,xlab="Patch Choice",ylab="Number of Visits",col=c("red","darkblue"),beside=T,ylim=c(0,4)) labs<-c("AM","PM&qu...