Created
December 2, 2012 12:24
-
-
Save dehowell/4188413 to your computer and use it in GitHub Desktop.
Plotting a bar graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
R plotting example for Jeff Wehrwein.