Trying to use ggplot to plot the distribution of the name John in the babynames library. Use geom_bar, geom_line, and facet_wrap to separate females and males.
Hi,
I would like to draw your attention to a very useful resource for the plotting with ggplot2: R Graphics Cookbook written by Winston Chang.
This book is also available online. This chapter in particular can be of interest to you. It is dedicated to the two ways of implementing bar/column graphs in ggplot2 which explains the case for use of geom_bar() and/or geom_col().
I personally find the book's examples, ready to use recipes, and comparisons with base R plotting functions very useful to understand the ggplot2 philosophy.