Re: [R] Plot a Matrix as an Image with ggplot

2013-02-18 Thread Alaios
You are good! Many thanks Alex From: Dennis Murphy Cc: R help Sent: Saturday, February 16, 2013 3:11 AM Subject: Re: [R] Plot a Matrix as an Image with ggplot Hi: See if the following works for you: library(reshape2) library(ggplot2) tdm <- m

Re: [R] Plot a Matrix as an Image with ggplot

2013-02-15 Thread Dennis Murphy
advanec for your help > Regards > Alex > > > - Original Message - > From: Dennis Murphy > To: Alaios > Cc: > Sent: Friday, February 15, 2013 10:19 AM > Subject: Re: [R] Plot a Matrix as an Image with ggplot > > Your aesthetic is fill, not color

Re: [R] Plot a Matrix as an Image with ggplot

2013-02-15 Thread Alaios
k you in advanec for your help Regards Alex - Original Message - From: Dennis Murphy To: Alaios Cc: Sent: Friday, February 15, 2013 10:19 AM Subject: Re: [R] Plot a Matrix as an Image with ggplot Your aesthetic is fill, not color. Change scale_color_gradient to scale_fill_gradient and you&

Re: [R] Plot a Matrix as an Image with ggplot

2013-02-14 Thread Alaios
ot;MHz") + ylab("Threshold") +    geom_raster() but this did not affect colorbar entries. b. reduce/remove the grayish border that appears between the legend and the image plot Could you please help me with these two? Regards Alex ________________ From: John Kan

Re: [R] Plot a Matrix as an Image with ggplot

2013-02-14 Thread John Kane
The R-help list is rather picky about what attached. None of your attachments arrived. The str() info is useful but please supply some sample data The easiest way to supply data is to use the dput() function. Example with your file named "testfile": dput(testfile) Then copy the output a