[R] plot.ts

Gabor Grothendieck ggrothendieck at myway.com
Wed Apr 28 02:46:37 CEST 2004


 <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" )




More information about the R-help mailing list