Hi Hadley, I am surprised you find time to reply to r-help questions despite your thesis deadline being on Monday. Good luck with it! Yes, I can wait until the new version is ready!
Regards, TL On Thu, Mar 27, 2008 at 12:28 PM, hadley wickham <[EMAIL PROTECTED]> wrote: > On Wed, Mar 26, 2008 at 6:01 AM, Tribo Laboy <[EMAIL PROTECTED]> wrote: > > Apologies! I though that the Orange dataset comes with R, but it is in > > fact in the package "datasets". > > > > So here's another "Orange2" dataset for the example: > > > > Tree_v = rep(c(1:5),each = 5) > > age_v = rep(seq(1,25, by = 5),5) + 10*runif(25) > > circumference_v <- rep(seq(21,45, by = 5), 5)*Tree_v + 25*runif(25) > > Orange2 <- data.frame(Tree = as.factor(Tree_v), age = age_v, > > circumference = circumference_v) > > > > > > This works fine: > > > > ggplot(data = Orange2, aes(x = age, y = circumference, color = Tree)) > > + geom_line() > > > > These generate errors (included): > > > > > ggplot(data = Orange2, aes(x = age, y = circumference, color = Tree, > linetype = Tree)) + geom_line() > > Error in get("check_domain", env = ., inherits = TRUE)(., ...) : > > Too many values in domain (5 > 4) > > > > > > > ggplot(data = Orange2, aes(x = age, y = circumference, color = Tree)) + > geom_line() + scale_linetype_manual(value = c(1:5)) > > Error in unit(values, units, data = data) : > > 'x' and 'units' must have length > 0 > > > > > > What am I doing wrong? > > It works fine for me, which implies that it's a bug that I've fixed in > the development version. I should be releasing a new version soon > (just as soon as I've handed in my thesis on Monday) so your best bet > is to wait for that. > > > > Hadley > > > -- > http://had.co.nz/ > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.