Dear List,
I would be pleased if someone can help me with the following issue:
I'm about to plot two time series in one plot via ts.plot which looks like:
ts.plot(series1, series2, main=main, xlab=xlab, ylab=ylab, col=c("green",
"red", "blue"), lwd=2)
The problem is, that R automatically sets the x axes labels in
5-year-intervalls. Every 5 years there's one tick and one label with the
respective year. Now I would like to customize the axes in a way that there
is a label every year and a tick every quarter.
In the previous code I've determined the time series with
series1 = ts(x, start=c(2000,1), frequency=4)
series2 = ts(y, start=c(2000,1), frequency=4)
What I've tried before is deleting the X axes via gpars=list(xaxt="n") in
the ts.plot-code. But after that I was not aible to add the customized axes
via axis()...
In advance, thank you very much for your help and hints!
Regards,
Jochem
Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App f?r iPhone
und Android.
[1]https://produkte.web.de/freemail_mobile_startseite/
References
1. https://produkte.web.de/freemail_mobile_startseite/
ts.plot and x axes customization
2 messages · Jochem Schuster, ilai
On Tue, Feb 28, 2012 at 12:57 PM, Jochem Schuster
<jochem.schuster at web.de> wrote:
? ts.plot(series1, series2, main=main, xlab=xlab, ylab=ylab, col=c("green",
? "red", "blue"), lwd=2)
? What I've tried before is deleting the X axes via gpars=list(xaxt="n") in
? the ts.plot-code. But after that I was not aible to add the customized axes ? via axis()...
So what was the problem? A reproducible example with your attempt at annotating the ?axis would help.
? In advance, thank you very much for your help and hints! ? Regards, ? Jochem ? Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App f?r iPhone ? und Android. ? [1]https://produkte.web.de/freemail_mobile_startseite/ References ? 1. https://produkte.web.de/freemail_mobile_startseite/
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.