Answer by RobertMyles for Getting the following error despite having...
I tried the annotate("text", x=as.Date("2014-04-01"), y=25, label="some text") solution by John J., but it didn't work for me (date_trans error), but I found a solution here. The idea is to use...
View ArticleAnswer by John J. for Getting the following error despite having variables in...
Here's another solution if you want to stick with the annotate command.annotate("text", x=as.Date("2014-04-01"), y=25, label="some text")This other StackOverflow question provides another...
View ArticleAnswer by Alexander Heath for Getting the following error despite having...
So rather than using the annotate() function within ggplot, you could use geom_text().You first have to make a data table or frame with your labelsx <- as.Date(c('2000-07-24'))y <- c(30)labs...
View ArticleGetting the following error despite having variables in suitable format:...
I am just trying to plot a small 27 point dataset with X-axis as Date (CommonDate) in date R format, and y-axis as a continuous variable.Despite having the date variable in Date format, and even after...
View Article