[R] Error unary operator

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Tue Oct 30 05:59:22 CET 2012

a) not reproducible, read the posting guide
b) there is actually a forum dedicated to ggplot2 where you would get better answers
c) I have not had luck providing an expression as the data argument to ggplot.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

Jean Jang <jeanwaijang at gmail.com> wrote:

>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
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list