[R] plot.ts
kjetil@acelerate.com
kjetil at acelerate.com
Thu Apr 29 00:44:55 CEST 2004
On 28 Apr 2004 at 0:46, Gabor Grothendieck wrote:
> <kjetil <at> acelerate.com> writes:
> > I have problems getting sensible series name plotted
> > with the ts.plot function. It doesn't seem to
> > use either ylab= or xy.labels= arguments.
> > I ended up using
> >
> > plot({arg <- ts.union(gasolina.eq, PIBmensPred, PIBgrowthmens) ;
> > colnames(arg) <- c("Gaso" ,"PIB", "PIBgrowth");arg },
> > main="Gasolina eq. con crecimiento Economico",
> > xlab="Tiempo")
>
> plot(
> ts.union(Gaso = gasolina.eq, PIB = PIBmensPred, PIBgrowth =
> PIBgrowthmens), main = "Gasolina eq. con crecimiento Economico",
> xlab = "Tiempo" )
>
Thanks! Then I can avoid the variable labels at all, if I want, by
using backticks:
plot(
ts.union(` ` = gasolina.eq, ` ` = PIBmensPred, ` ` =
PIBgrowthmens), main = "Gasolina eq. con crecimiento Economico",
xlab = "Tiempo" )
However, with plot.type="s", whatever I do, I get the complete x
argument as y-label, no way to avoid it. Any solution (apart from
hacking the code, which I am about to do)?
Kjetil Halvorsen
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list