Re: [R] plot rownames

2008-05-28 Thread T.D.Rudolph
I did have the problem of not having two continuous variables and this approach circumvents this, allowing me in fact to plot the rownames. Prof Brian Ripley wrote: > > On Tue, 27 May 2008, T.D.Rudolph wrote: > >> >> In the following example: >> x <- rnorm(1:100) >> y <- seq(from=-2.5, to=3.

Re: [R] plot rownames

2008-05-27 Thread Prof Brian Ripley
On Tue, 27 May 2008, T.D.Rudolph wrote: In the following example: x <- rnorm(1:100) y <- seq(from=-2.5, to=3.5, by=0.5) z <- as.matrix(table(cut(x,c(-Inf, y, +Inf ## I wish to transform the values in z j <- log(z) ## Yet retain the row names row.names(j)<-row.names(z) Hmm. The rownames

[R] plot rownames

2008-05-27 Thread T.D.Rudolph
In the following example: x <- rnorm(1:100) y <- seq(from=-2.5, to=3.5, by=0.5) z <- as.matrix(table(cut(x,c(-Inf, y, +Inf ## I wish to transform the values in z j <- log(z) ## Yet retain the row names row.names(j)<-row.names(z) Now, how can I go about creating a scatterplot with row.names(