[R] Error Message Cannot use `+.gg()` with a single argument. Did you accidentally put + on a new line?

Eric Berger er|cjberger @end|ng |rom gm@||@com
Sat Dec 19 22:08:32 CET 2020


As the error message says, move the '+' sign from the start of the second
line to the end of the preceding line.


On Sat, Dec 19, 2020 at 10:29 PM Rosato, Kyle <kyle using ehrs.upenn.edu> wrote:

> For some simple reason, I am unable to see the mistake:
>
> ggplot(filter(nlsw88, !(is.na(union))), aes(y = wage, x = union, fill =
> union))
> + geom_boxplot() + facet_wrap(~idblack)
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list