Skip to content

Instantly share code, notes, and snippets.

@frojasg
Last active August 29, 2015 14:25
Show Gist options
  • Save frojasg/6f8699f34d3f94f6f06d to your computer and use it in GitHub Desktop.
Save frojasg/6f8699f34d3f94f6f06d to your computer and use it in GitHub Desktop.
  install.packages(ggplot2)
  library(ggplot2)
  ggplot(AgeAnxietyNoOutliers, aes(x=Age, y=Anxiety)) + stat_function(fun=function(x) 3.533 + 0.001012*x,  geom="line", aes(colour="Model")) + geom_point()

You will see the following image: graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment