Skip to content

Instantly share code, notes, and snippets.

@prasoonsharma
Created December 2, 2010 11:47
Show Gist options
  • Save prasoonsharma/725167 to your computer and use it in GitHub Desktop.
Save prasoonsharma/725167 to your computer and use it in GitHub Desktop.
Basic plots in R
# DOT PLOT
x <- c(1:100)
y <- x*x
plot(x, y)
# LINE PLOT
x <- c(1:100)
y <- x*x
plot(x, y, type="l")
# BAR PLOT
# TITLE
# LEGENDS
# COMPLEX CHARTS
https://gist.github.com/651807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment