it looks like facet_grid(Aeventexhumed ~ Rayos) + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7))
should read facet_grid(Aeventexhumed ~ Rayos) + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7)) In ggplot the + must be on the preceding line. John Kane Kingston ON Canada > -----Original Message----- > From: jeanwaij...@gmail.com > Sent: Mon, 29 Oct 2012 18:34:39 -1000 > To: r-help@r-project.org > Subject: [R] Error unary operator > > Hi R - listers, > > I am receiving an error. Does anyone know what this means? J > > ggplot(subset(foo, Rayos != "Rayos.NA"), aes(x=HTL, y=DevelopIndex, > colour=TotalEggs)) +geom_point() +geom_jitter() + > facet_grid(Aeventexhumed ~ Rayos) > + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7)) > > > Error in +geom_smooth(method = "lm", fill = NA) : > invalid argument to unary operator > [[alternative HTML version deleted]] > > ______________________________________________ > 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. ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails ______________________________________________ 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.