All,
Any suggestions on where I'm going wrong ?
qplot(mpg / 100, wt, data = mtcars, facets = vs ~ am) +
theme(panel.margin = unit(1, "cm"))
Error in theme(panel.margin = unit(1, "cm")) :
could not find function "unit"
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_0.9.3
loaded via a namespace (and not attached):
[1] colorspace_1.1-1 dichromat_1.2-4 digest_0.5.2
grid_2.15.2 gtable_0.1.2 labeling_0.1 MASS_7.3-22
munsell_0.4 plyr_1.8
[10] proto_0.3-9.2 RColorBrewer_1.0-5 reshape2_1.2.1
scales_0.2.3 stringr_0.6.1