How to Install r-cran-ggplot2 in Ubuntu 18.04



Install r-cran-ggplot2 by entering the following commands in the terminal:

sudo apt update
sudo apt install r-cran-ggplot2

Description:

implementation of the Grammar of Graphics

ggplot2 combines the advantages of both base and lattice graphics. Conditioning and shared axes are handled automatically, and you can still build up a plot step by step from multiple data sources. It also implements a sophisticated multidimensional conditioning system and a consistent interface to map data to aesthetic attributes.

Homepage: https://cran.r-project.org/package=ggplot2

Version: 2.2.1-3

Section: universe/gnu-r