I'm trying to build a plot. It works fine until I add categorical variables to mapping (reproducible on histograms, for example, and doesn't really depend on dataframe size). For example: This works:
ggplot(diamonds, aes(carat, price)) + layer(geom = 'point') This doesn't: ggplot(diamonds, aes(carat, price, colour = cut)) + layer(geom = 'point') The version of R in the latest one, ggplot2 also is new, so I have no idea what's wrong. R version 3.0.1 (2013-05-16) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] ggplot2_0.9.3.1 loaded via a namespace (and not attached): [1] colorspace_1.2-2 dichromat_2.0-0 digest_0.6.3 grid_3.0.1 [5] gtable_0.1.2 labeling_0.1 MASS_7.3-26 munsell_0.4 [9] plyr_1.8 proto_0.3-10 RColorBrewer_1.0-5 reshape2_1.2.2 [13] scales_0.2.3 stringr_0.6.2 Best regards, Jelena Chuklina [email protected] [[alternative HTML version deleted]] _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
