Some say that plotting is one of the best parts of R. Most R objects have an associated plot method which allows one to quickly visualize the results of an analysis.

In this section, we discuss the base graphics system, as well as higher-level graphics packages such as lattice and ggplot2. Finally, we showcase some additional graphics packages which may become handy for more tailored applications.

Because of the complexity of R’s plotting system, we will only scratch the surface on this topic. Feel encouraged to strengthen your capabilities and learn more about plotting in R from other resources as well.


The E-Learning project SOGA-R was developed at the Department of Earth Sciences by Kai Hartmann, Joachim Krois and Annette Rudolph. You can reach us via mail by soga[at]

Creative Commons License
You may use this project freely under the Creative Commons Attribution-ShareAlike 4.0 International License.

Please cite as follow: Hartmann, K., Krois, J., Rudolph, A. (2023): Statistics and Geodata Analysis using R (SOGA-R). Department of Earth Sciences, Freie Universitaet Berlin.