[R] Bar Charts

reichm@@j m@iii@g oii sbcgiob@i@@et reichm@@j m@iii@g oii sbcgiob@i@@et
Wed Oct 16 02:20:35 CEST 2019

r-help forum


I have a database that I have performed a "group_by" of a variable called
CONTBR_OCCUPATION. I then simply want to plot out just the top 15 results as
a bar plot. How do I plot only the top 15 groups on the x -axis. Should I
just extract the top 15 records and plot them or is the a better way?


occup <- myDat %>%

  group_by(CONTBR_OCCUPATION) %>%

  summarize(count = n()) %>%





	[[alternative HTML version deleted]]

More information about the R-help mailing list