Plotting with ggplot2

For beginners just getting their bearings in R and Rstudio, there are a few quick ways to translate your data into visualization. Let’s start with some random sample data with an exponential behavior: The Plot Command set.seed(123) x <- rnorm(100,10,1) y <- exp(x) plot(x,y, main = "A Sample Plot", xlab = "X-label", ylab = "Y-label") Behold…ggplot2! The plot command is a quick way to snapshot your data in a bare-bones manner.