Rosato, Kyle
2020-Dec-19 15:44 UTC
[R] Error Message Cannot use `+.gg()` with a single argument. Did you accidentally put + on a new line?
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]]
Eric Berger
2020-Dec-19 21:08 UTC
[R] Error Message Cannot use `+.gg()` with a single argument. Did you accidentally put + on a new line?
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 at 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 at 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]]