[R] Error unary operator

peter dalgaard pdalgd at gmail.com
Tue Oct 30 07:57:59 CET 2012


On Oct 30, 2012, at 05:34 , Jean Jang wrote:

> Hi R - listers,
> 
> I am receiving an error. Does anyone know what this means? J
> 

This command:

> ggplot(subset(foo, Rayos != "Rayos.NA"), aes(x=HTL, y=DevelopIndex,
> colour=TotalEggs)) +geom_point() +geom_jitter() +  
> facet_grid(Aeventexhumed ~ Rayos)

... ends here.

This command:

> + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7))

makes no sense in isolation. Hence

> Error in +geom_smooth(method = "lm", fill = NA) :
>   invalid argument to unary operator

I suppose the + wants to be on the preceding line.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com




More information about the R-help mailing list