Skip to content
Prev 387450 / 398502 Next

How to plot dates

Dear Greg,

Coordinate plots typically have a horizontal (x) and vertical (y) axis. 
The command

	ggplot(myDat, aes(x=datetime, y = datetime)) + geom_point()

works, but I doubt that it produces what you want.

You have only one variable in your data set -- datetime -- so it's not 
obvious what you want to do. If you can't clearly describe the structure 
of the plot you intend to draw, it's doubtful that I or anyone else can 
help you.

Best,
  John

John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/
On 2021-03-16 2:56 p.m., Gregory Coats via R-help wrote: