[R] How to plot dates

Gregory Coats gregco@t@ @end|ng |rom me@com
Tue Mar 16 19:56:34 CET 2021


I need a plot that shows the date and time that each event started.
This ggplot command was publicly given to me via this R Help Mailing LIst.
But the result of issuing the ggplot command is an Error in FUN message.
ggplot(myDat, aes(x=datetime, y = Y_Var)) + geom_point()
Error in FUN(X[[i]], ...) : object 'Y_Var' not found
Greg Coats

> On Mar 16, 2021, at 2:18 PM, John Fox <jfox using mcmaster.ca> wrote:
> 
> There is no variable named Y_Var in your data set. I suspect that it's intended to be a generic specification in the recipe you were apparently given. In fact, there appears to be only one variable in myDat and that's datetime. What is it that you're trying to do?


	[[alternative HTML version deleted]]



More information about the R-help mailing list