[R] simple plotting wcor (Rssa) question

David Winsemius dwinsemius at comcast.net
Wed Aug 27 18:47:56 CEST 2014

On Aug 27, 2014, at 2:18 AM, Ingo Wardinski wrote:

> Hello,
> I try to plot w-correlation matrix of singular spectrum analysis by using the package Rssa. This is an example:
> > library(Rssa)
> > s <- ssa(co2)
> > w <- wcor(s, groups = 1:20)
> > plot(w,cex.label=3),scales=list(at=c(10,20,30,40)))
                      ^ throws an error because of extra paren.
> However cex.label dos not have any effect. Also I would like to change the tick labels, currently they show up as F1, F2 etc., and I would like to have them as 1, 2, etc.

The fact that the plot function for this sort of object has a 'scales' argument suggests to me that it is based on lattice plot functions rather than on base plot functions. If I'm correct, (and I just checked the code and I was) then you should read ?xyplot for the scales arguments. There are a couple of pages to scroll through. Arguments like cex.label that are typical of base plotting functions would likely not have any effect, and unlike base plot methods which complain about extraneous arguments, lattice plot functions generally just ignore such.

For me they do not show up as F1,F2 in your example.

 It doesn't make much sense to request the at values of 30 and 40 since you only gave it a matrix that was 20 x 20.


David Winsemius
Alameda, CA, USA

More information about the R-help mailing list