Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 10 lines (8 sloc) 0.35 kb
66ac31f @tavisrudd initial import
authored
1 # http://flowingdata.com/2010/03/29/how-to-make-a-scatterplot-with-a-smooth-fitted-line/
2 library(ggplot2)
3 unemployment <- read.csv("http://datasets.flowingdata.com/unemployment-rate-1948-2010.csv",
4 sep=",")
5
6 p1 <- (ggplot(unemployment, aes(x=1:length(Value), y=Value))
7 + geom_point()
8 + geom_smooth())
9 print(p1)
Something went wrong with that request. Please try again.