library(ggplot2)
p <- ggplot(economics, aes(date, unemploy))
p <- p + geom_area()
print(p)
Data points are joined in ascending order of their x-value.
p <- ggplot(economics, aes(date, unemploy))
p <- p + geom_line()
print(p)
p <- ggplot(women, aes(height, weight))
p <- p + geom_step()
print(p)