Displaying 1 result from an estimated 1 matches for "maxbreadth".
2012 May 03
1
bwplot: using a numeric variable to position boxplots
...This is what I've tried. I reshape the data to a long format and can
plot value ~ epoch or value ~ as.factor(year),
but I really want to space the boxplots according to the numeric value
of year.
# better variable labels -- how to incorporate these in the strip labels?
vlab <- c("maxBreadth", "basibHeight", "basialLength", "nasalHeight")
library(lattice)
library(reshape2)
Skulls$year <- rep(c(-4000, -3300, -1850, -200, 150), each=30)
sklong <- melt(Skulls, id=c("epoch", "year"))
bwplot(value ~ epoch | variable, data=sklong...