Re: [R] ggplot2 adding vertical line at a certain date

2009-05-28 Thread Ivan Alves
check out geom_vline + geom_vline(xintercept=as.numeric(as.Date("2002-11-01"))) [you may not need to convert the date to numeric in the most recent ggplot2 version] On 27 May 2009, at 20:31, stephen sefick wrote: library(ggplot2) melt.updn <- (structure(list(date = structure(c(11808, 118

[R] ggplot2 adding vertical line at a certain date

2009-05-27 Thread stephen sefick
library(ggplot2) melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057, 13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), variable = structur