πŸ“£ggplot2 package

The ggplot2 package is a simplified implementation of grammar of graphics written by Hadley Wickham for R.

Components of Grammar of Graphics

Grammar of Graphics Components (sourcearrow-up-right)

Aesthetics in ggplot2

Aesthetics in ggplot2 package (sourcearrow-up-right)

vjust() and hjust()

To adjust the horizontal and vertical justification of labels and texts of a graph we can use the following image as a reference.

Last updated