Skip to content

cex.lab etc. ignored in plot.ts for multiple plots (PR#13315)

2 messages · Yan Wong, Gabor Grothendieck

#
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
col.lab="red")  #tiny red axis labels
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")'
#
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: