ggplot()

ggsave()

What is ggsave(): ggsave() is a convenient function for saving a plot. It defaults to saving the last plot that you displayed, using the size of the current graphics device. It also guesses the type of graphics device from the extension. Usage: ggsave( filename, plot = last_plot(), device = NULL, path = NULL, scale = 1, […]

ggsave() Read More »

aes()

The aesthetics is defined as the visual property of an object in your plot. The aes() function is partially responsible for what the data points look like in R. There are three aesthetic attributes in ggplot2: Color: this allows you to change the color of all of the points on your plot, or the color

aes() Read More »

Scroll to Top