Re: [R] plotting matrix into 2D color plots with rainbow colors

2011-07-28 Thread Jim Lemon
On 07/28/2011 04:00 PM, hitendra padalia wrote: Dear all, Can you pl. help me in plotting a matrix into 2D plot with more color options. I tried to plot with myImagePlot with RGB color ramp but it shows limited variation in color. There is a rainbow plot option also. Can anyone help me. Hi Hit

[R] plotting matrix into 2D color plots with rainbow colors

2011-07-27 Thread hitendra padalia
Dear all, Can you pl. help me in plotting a matrix into 2D plot with more color options. I tried to plot with myImagePlot with RGB color ramp but it shows limited variation in color. There is a rainbow plot option also. Can anyone help me. Regards, Hitendra -- Hitendra Padalia, PhD Scientist/Eng

Re: [R] plotting matrix

2008-10-22 Thread Gabor Grothendieck
Perhaps: for(i in 2:4) plot(g[c(1, i)]) On Wed, Oct 22, 2008 at 8:56 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > #this does what I want is there a better way to do this > a <- c(1:26) > b <- rnorm(26) > e <- rnorm(26) > f <- rnorm(26) > g <- data.frame(a,b,e,f) > > for(i in 1:3){ > plot(g[,i]

Re: [R] plotting matrix

2008-10-22 Thread stephen sefick
#this does what I want is there a better way to do this a <- c(1:26) b <- rnorm(26) e <- rnorm(26) f <- rnorm(26) g <- data.frame(a,b,e,f) for(i in 1:3){ plot(g[,i]~g[,"a"], ylab=colnames(g)[i]) } On Wed, Oct 22, 2008 at 6:39 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > #sorry lets try that ag

Re: [R] plotting matrix

2008-10-22 Thread stephen sefick
#sorry lets try that agian here is data that should work a <- c(1:26) b <- rnorm(26) e <- rnorm(26) f <- rnorm(26) g <- data.frame(b,e, a,f) On Wed, Oct 22, 2008 at 6:35 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > a <- c(1:26) > b <- rnorm(25) > e <- rnorm(25) > f <- rnorm(25) > g <- data.fra

[R] plotting matrix

2008-10-22 Thread stephen sefick
a <- c(1:26) b <- rnorm(25) e <- rnorm(25) f <- rnorm(25) g <- data.frame(b,e, a,f) I would like to plot a agianst all possibilities and then shoot it out to a pdf one graph per page. I think it would be okay to have this as a lattice plot or a ggplot with many graphs per page. I can figure all

Re: [R] Plotting matrix rows with lattice graphics?

2008-03-25 Thread Deepayan Sarkar
On 3/25/08, Ron Bonner <[EMAIL PROTECTED]> wrote: > Thanks Henrique - that didn't exactly solve my problem but gave me enough to > do so! > > In your solution each row is plotted as a vertical row of points at the > value of 'ind' while I wanted to plot the values against the column numbers, >

Re: [R] Plotting matrix rows with lattice graphics?

2008-03-25 Thread Ron Bonner
Thanks Henrique - that didn't exactly solve my problem but gave me enough to do so! In your solution each row is plotted as a vertical row of points at the value of 'ind' while I wanted to plot the values against the column numbers, i.e. 1 to 5. The solution was to create a vector of column numbe

Re: [R] Plotting matrix rows with lattice graphics?

2008-03-25 Thread Henrique Dallazuanna
Maybe: xyplot(values ~ ind|ind, data = stack(split(m, 1:4))) On 24/03/2008, Ron Bonner <[EMAIL PROTECTED]> wrote: > Sorry if this is an FAQ, but I haven't found the answer (yet)... > > I'm trying to plot each row of a simple numeric matrix in a separate > panel using the layout features of latt

[R] Plotting matrix rows with lattice graphics?

2008-03-24 Thread Ron Bonner
Sorry if this is an FAQ, but I haven't found the answer (yet)... I'm trying to plot each row of a simple numeric matrix in a separate panel using the layout features of lattice, but can't make it work - help would be appreciated! Example: > m <- matrix(seq(1:20), nrow=4) > m [,1] [,