[R] Adding Year-Month-Day to X axis
Jim Lemon
drj|m|emon @end|ng |rom gm@||@com
Mon May 7 06:34:44 CEST 2018
Look at par(las=2) in the graphics package. You will almost certainly
have to increase the bottom margin, e.g.:
par(mar=c(6,4,4,2)
to accomodate the vertical labels.
Jim
On Mon, May 7, 2018 at 2:11 PM, Gregory Coats <gregcoats using me.com> wrote:
> Thanks. Regarding
> axis(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d"))
>
> How do I get the text for YYYY-MM-DD to be drawn vertically, instead of
> horizontally?
> Greg
>
> On May 6, 2018, at 11:54 PM, Jim Lemon <drjimlemon using gmail.com> wrote:
>
> axis(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d"))
>
>
More information about the R-help
mailing list