Skip to content

Instantly share code, notes, and snippets.

@dehowell
Created December 2, 2012 12:24
Show Gist options
  • Save dehowell/4188413 to your computer and use it in GitHub Desktop.
Save dehowell/4188413 to your computer and use it in GitHub Desktop.
Plotting a bar graph
# Install the awesome ggplot graphics library
install.packages("ggplot2")
# Read in the data file, assuming a CSV and a header line
running <- read.table("running.csv", sep=",", header=TRUE)
# Plot!
ggplot(running, aes(x = as.Date(date), ymin = 0, ymax = ounces)) + geom_linerange()
@dehowell
Copy link
Author

dehowell commented Dec 2, 2012

R plotting example for Jeff Wehrwein.

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