Skip to content
Prev 387433 / 398502 Next

How to plot dates

Hi Greg,
As the POSIX conversion part is already answered, I'll add:

as.Date("16/03/2021",format="%d/%m/%Y")

converts to Date object and

axis.Date()

will display dates on the date axis in base graphics.

Jim

On Tue, 16 Mar 2021, 08:33 Gregory Coats via R-help <r-help at r-project.org
wrote: