Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created December 28, 2013 18:19
Show Gist options
  • Save qoelet/8162395 to your computer and use it in GitHub Desktop.
Save qoelet/8162395 to your computer and use it in GitHub Desktop.
# Plotting a v-line on date
date_idx <- which(df$Date=="2013-11-20")
p <- ggplot(df, aes(Date, Value))
p + geom_line() + geom_vline(xintercept=as.numeric(df$Date[date_idx]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment