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
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
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&
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
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
5 matches
Mail list logo