Skip to content
Back to formatted view

Raw Message

Message-ID: <476937310BB.0000006Bjrkrideau@inbox.com>
Date: 2012-10-30T13:28:49Z
From: John Kane
Subject: Error unary operator
In-Reply-To: <C72B1F03-2CB9-43FC-A9DF-FEDBD0096C4A@gmail.com>

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