Try this:
plot(tsData, ylab="Values", xlab="Zeit", xaxt = "n")
axis(1, time(tsData), rep(substr(month.abb, 1, 1), length = length(tsData)),
cex.axis = .3, tcl = -.5)
jan <- time(tsData)[cycle(tsData) == 1] # january
axis(1, jan, FALSE, tcl = -1)
abline(v = jan, lty = 2)
and also look at
Hello,
how is it possible to plot a time series of monthly data over several years
such that the x-axis shows the first letter of the month and displays a grid
line at every year? I am new to R and had no real success until now. I have:
> library(utils)
> oneMonth = 1.0 / 12.0
> tsData = ts(rnorm
2 matches
Mail list logo