I'm a new in R-programming for data analysis.
I trying to create my project with dataset name "all_trip_v2" from public datasets
I aim to create a barchart to show only top 10 of Total count of each "start_station_name" and show in a bar chart with ggplot2 + geom_bar() and show the proportion of member type(member_casual)
I run this code
ggplot(all_trips_v2, aes(start_station_name,
fill = member_casual)) +
geom_bar()
As you can see, The result have a lots of bar grouped by "start_station_name". I just need to filter only top 10 count of start station name. Please give me some advice. Thank you so much.
I expected to create a bat like this