Skip to content
Back to formatted view

Raw Message

Message-ID: <1FC96CA6-369D-4334-BD53-6BBCEFDECDFA@gmail.com>
Date: 2012-10-30T06:57:59Z
From: Peter Dalgaard
Subject: Error unary operator
In-Reply-To: <C72B1F03-2CB9-43FC-A9DF-FEDBD0096C4A@gmail.com>

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