0

I'm trying to run the code below but encounter an error.

ggplot(Weekdag.en.uren, aes(x = Uur, y = count, group = 1)) + 
  geom_point() + 
  geom_line() +
  facet_wrap(~Weekdag)
UseR10085
  • 7,120
  • 3
  • 24
  • 54
  • 2
    Please provide your data in `dput(Weekdag.en.uren)` format. visit [How to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). – UseR10085 Sep 23 '20 at 11:17
  • 2
    Inside `aes` the right hand side of equalities should be variables, but it is not the case of `group = 1`. I would say this is the reason of the error. So you may want to do `ggplot(Weekdag.en.uren, aes(x = Uur, y = count), group = 1)` instead. – iago Sep 23 '20 at 11:36

0 Answers0