Quantcast
Channel: Getting the following error despite having variables in suitable format: Error: Invalid input: date_trans works with objects of class Date only - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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 Article


Answer 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 Article

Getting 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
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>