Skip to content
Prev 303428 / 398503 Next

boxplot help

Hello,

I'm not sure wether this is what you want, but here it goes.

dd <- structure( ...etc... )  # your dataset

# make group identifiers
ym <- paste(dd$Year, as.character(dd$Month), sep="-")

op <- par(las=2) # make labels perpendicular to axis
bp <- boxplot(Temp ~ ym, data=dd)
axis(1, at = seq_along(unique(ym)), labels = bp$names)
par(op)

If it's what you want, add color and legend.

Hope this helps,

Rui Barradas

Em 15-08-2012 17:52, andyspeak escreveu: