You haven't shown us the ggplot code you're running. Also, this looks like a homework problem. If so, please see the homework policy.
To get you started, note the difference between the type of variable plotted on the y-axis in the example plot and the plot you produced. Also take a look at the data frame you're feeding to ggplot and see if it has the types of data you'll need to produce the desired plot.