I"m new in R, and with trouble with a chunk of code ggplot

Hello.
I'm trying to finish a course, but one of my ggplot command isnt working and I dont know why
´´´r
ggplot(data = all_trips_v2, aes(x=started_at)) +
geom_bar() +
facet_wrap(~day_of_week)
´´´
I appreciate any advice . I really dont know what's wrong. The plots dont appear in RStudio, and no error is shown either

Without knowing what all_trips_v2 looks like, it is very hard to say what the problem is. My two suggestions are:

  1. Post the output of dput(head(all_trips_v2$started_at))
  2. Look at the help file for geom_bar and consider whether you should use geom_col instead. Using geom_bar might be correct but it is a common mistake to use it when geom_col would be correct.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.