Hi:
The easiest fix is to convert Day to a factor. Making a couple modifications
to your code, I got the following:
CorbulaMR3$Day <- factor(CorbulaMR3$Day)
p=ggplot(CorbulaMR3,aes(factor(Site),VO2))
p + geom_boxplot(aes(fill=factor(Day)),
position = position_dodge(width = 0.8))
Hello,
I am trying to create a series of boxplots with the following data, three
columns, "Day" (1 or 2), "Site" (1-4), and "VO2" (some values missing for
some Sites or Days)
> CorbulaMR3
Day Site VO2
111 88.92223
211 86.17873
311 61.08950
411 190.47922
2 matches
Mail list logo