If you’re starting a plot from scratch, I urge you to check the R Graphics Cookbook first. Information and detail about various ggplot2 components can be found in the ggplot2 reference.