[R] Error unary operator

John Kane jrkrideau at inbox.com
Tue Oct 30 14:28:49 CET 2012


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: jeanwaijang at gmail.com
> Sent: Mon, 29 Oct 2012 18:34:39 -1000
> To: r-help at 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 at 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




More information about the R-help mailing list