0

I was following the instruction of google data analytics online course for this Case study of the Cyclistic bikesharing company. The last step after I use this code visualize the number of rides by rider type, the plot doesn't show the numeric number on y-axis.

all_trips_cleaned %>%
mutate(weekday = wday(started_at, label = TRUE)) %>% 
group_by(member_casual, weekday) %>% 
summarise(number_of_rides = n(),average_duration = mean(ride_length)) %>% 
arrange(member_casual, weekday) %>%
ggplot(aes(x = weekday, y = number_of_rides, fill = member_casual)) + geom_col(position = "dodge")

This is what i get currently

enter image description here

How can I change the y-axis label as numbers?

GuedesBF
  • 8,409
  • 5
  • 19
  • 37
Hdd
  • 1
  • 1
    To remove scientific notation, try to call `options(scipen = 999)` before your call to the data transformation %>% ggplot – GuedesBF Oct 06 '22 at 00:42
  • 1
    Alternately `... + scale_y_continuous(labels = scales::label_number(big.mark = ","))` (with lots of other options available in `?scales::label_number`) – Gregor Thomas Oct 06 '22 at 01:29
  • [Force R to stop plotting abbreviated axis labels](https://stackoverflow.com/questions/14563989/force-r-to-stop-plotting-abbreviated-axis-labels-scientific-notation-e-g-1e) – Isaiah Oct 06 '22 at 03:12

0 Answers0