[Rd] cex.lab etc. ignored in plot.ts for multiple plots (PR#13315)
Gabor Grothendieck
ggrothendieck at gmail.com
Sat Nov 22 09:33:45 CET 2008
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
>
More information about the R-devel
mailing list