Plot With Both Lines And Poiints

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

# load the gcookbook package for the data
library(gcookbook)

# load the ggplot2 package
library(ggplot2)

# reset the graphing device
dev.off()
null device
          1
# create a plot with both lines and dots
ggplot(BOD, aes(x=Time, y=demand)) +
  geom_line() +
  geom_point()

png