Line Graph

Want to learn more? I recommend working through: R for Data Science, R Cookbook, and R Graphics Cookbook.

# load the ggplot2 package
library(ggplot2)
# plot pressure vs. temperature with a line
ggplot(pressure, aes(x=temperature, y=pressure)) + geom_line() + geom_point()

png