Skip to content
Prev 377152 / 398502 Next

date and time data on x axis

Hello,

Inline.

?s 14:03 de 29/10/2018, snowball0916 escreveu:
See the help for ?par. You have

mar
A numerical vector of the form c(bottom, left, top, right) which gives 
the number of lines of margin to be specified on the four sides of the 
plot. The default is c(5, 4, 4, 2) + 0.1.


So par("mar") returns c(5.1, 4.1, 4.1, 2.1)
In order to see the x axis labels, that are longer than normal, I have 
added 4 to the bottom only, c(4, 0, 0, 0) + default_value.
And par() returns the previous values of the graphices parameters, so 
save them in op (old param) and restore the defaults when done plotting.
It's ?axis.POSIXct or help('axis.POSIXct'). You want the S3 method for 
objects of class "POSIXct".

Hope this helps,

Rui Barradas