yan at pixie.org.uk
2008-Nov-21 13:50 UTC
[Rd] cex.lab etc. ignored in plot.ts for multiple plots (PR#13315)
Full_Name: Yan Wong Version: 2.8.0 OS: Mac OS X 10.4 Submission from: (NULL) (78.149.183.231) When plotting multiple time series in a single plot, via plot.ts(plot.type="multiple"), the cex.lab, col.lab, and font.lab arguments are ignored> plot(ts(data.frame(a=1:10, b=1:10)), plot.type="single", cex.lab=0.5,col.lab="red") #tiny red axis labels> plot(ts(data.frame(a=1:10, b=1:10)), plot.type="multiple", cex.lab=0.5,col.lab="red") #should have tiny red axis labels, but does not. I think this a problem with lines 54-57 of plot.ts. In particular, the mtext functions should also be called with 'cex=cex.lab, col=col.lab, font=font.lab', and the argument list of the plotts function should also contain 'cex.lab=par("cex.lab"), col.lab=par("col.lab"), font.lab=par("font.lab")'
Gabor Grothendieck
2008-Nov-22 08:33 UTC
[Rd] cex.lab etc. ignored in plot.ts for multiple plots (PR#13315)
As a workaround you could use plot.zoo: library(zoo) tt <- ts(cbind(a = 1:10, b = 1:10)) plot(as.zoo(tt), plot.type="multiple", cex.lab = 0.5, col.lab = "red") On Fri, Nov 21, 2008 at 8:50 AM, <yan at pixie.org.uk> wrote:> Full_Name: Yan Wong > Version: 2.8.0 > OS: Mac OS X 10.4 > Submission from: (NULL) (78.149.183.231) > > > When plotting multiple time series in a single plot, via > plot.ts(plot.type="multiple"), the cex.lab, col.lab, and font.lab arguments are > ignored > >> plot(ts(data.frame(a=1:10, b=1:10)), plot.type="single", cex.lab=0.5, > col.lab="red") #tiny red axis labels >> plot(ts(data.frame(a=1:10, b=1:10)), plot.type="multiple", cex.lab=0.5, > col.lab="red") #should have tiny red axis labels, but does not. > > I think this a problem with lines 54-57 of plot.ts. In particular, the mtext > functions should also be called with 'cex=cex.lab, col=col.lab, font=font.lab', > and the argument list of the plotts function should also contain > 'cex.lab=par("cex.lab"), col.lab=par("col.lab"), font.lab=par("font.lab")' > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
Apparently Analagous Threads
- "plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)
- "plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)
- cex.lab ignored in plot.zoo for multiple plots
- "plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)
- "plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)