[R] boxplot help
andyspeak
freakyspeaky at hotmail.com
Wed Aug 15 14:34:55 CEST 2012
Hi, im a newbie with very wobbly coding abilities.
Tearing my hair out over getting the boxplot i want...
I have a dataset called 'eagle' which consists of year (2011 or 2012), month
(jan - dec), roof (TT6, TT13 or BARE) and temp (the continuous variable that
i want to plot).
So i want boxplots of the three roof treatments in every month organised in
chronical order along x axis 2011 - 2012.
my code at the moment is:
> boxplot(Temp~Month, data=eagle, at = 1:12 - 0.5, boxwex=0.25, subset=Roof
> == "TT6", col = "green")
> boxplot(Temp~Month, data=eagle, add=TRUE, at = 1:12 - 0.1, boxwex = 0.25,
> subset=Roof == "TT13", col = "darkgreen")
> boxplot(Temp~Month, data=eagle, add=TRUE, boxwex=0.25, at = 1:12 + 0.2,
> subset=Roof == "BARE", col = "red")
> smartlegend(x="left",y="top", inset = 0, c("green 1", "green 2", "bare"),
> fill = c("green", "darkgreen", "red"))
which produces the graph inserted
Can anyone point me in right direction?
thanks http://r.789695.n4.nabble.com/file/n4640360/boxplot_trial.jpg
--
View this message in context: http://r.789695.n4.nabble.com/boxplot-help-tp4640360.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list