Not able to use geom_text

Can someone help to know how to put labels in my bar chart. Only x has been used in the aes() which means y is default to count.
I am not able use the geom_text here. Please help me to know how to label this in bar chart with only one variable.

I want to display the ride values on the top of each bar.

ggplot(data = dframe, aes(x = Day_Of_Week)) +
  geom_bar(fill = 'black') +
  labs(title = 'No.of Days', x = 'Number Of Days', y = 'Rides') +
  facet_wrap(~Member_Type)

Screenshot 2021-07-22 174134

We need reproducible example (reprex)

Here is an example

library(ggplot2)

ggplot(mtcars, aes(cyl)) +
    geom_bar(fill = "black") +
    geom_text(aes(label = stat(count)), stat = "count", vjust = -0.5)

Created on 2021-07-22 by the reprex package (v2.0.0)

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

It worked. Thanks a lot @andresrcs

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 21 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.