Closed lindsayplatt closed 8 years ago
using pretty()
and everything does match base!
Base and gsplot are matching now
Base
some_dates <- seq(as.POSIXct("2010-10-01"), as.POSIXct("2011-09-30"), by="month")
plot(some_dates, 1:12)
gsplot
gs <- gsplot() %>%
points(some_dates, 1:12)
gs
Another example:
Base
library(dataRetrieval)
siteNumber <- '04085427'
startDate <- '2012-01-01'
endDate <- '2012-06-30'
pCode <- '00060'
dv <- readNWISdv(siteNumber,pCode, startDate, endDate)
plot(dv$Date, dv$X_00060_00003)
gsplot
gsplot() %>%
points(dv$Date, dv$X_00060_00003)
see Compatibility with base plotting section
date_vector <- seq(as.Date("2010-10-01"), as.Date("2011-09-30"), by="months")
gs <- gsplot() %>%
points(date_vector, 1:12)
gs
points(as.Date("2010-11-15"),2.5)
What the plot would look like before this PR:
After this PR:
fixing #395
sharing some helper functions with
draw_custom_grid
, but not quite to the extent #343 is talking about