Skip to content
Back to formatted view

Raw Message

Message-ID: <0072F6CA-2F04-461D-A815-7DEB763BA8BD@me.com>
Date: 2021-03-16T18:56:34Z
From: Gregory Coats
Subject: How to plot dates
In-Reply-To: <0945c0aa-dec8-59e3-b706-11eefb06fcd5@mcmaster.ca>

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 at 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]]