On 08/31/2013 07:29 PM, Wei Liu wrote:
Dear All,
I want to plot a heatmap with R, but my data distributed unevenly, for
example, my data range from 10 to 1500, but most of the data smaller than
200, when I plot a heatmap, the colour is also distributed unevenly, most
part of the heatmap is one colour, so the heatmap is ugly and meaningless.
So can anybody help me plot a pretty heatmap for me with the attached data.
I am looking forward your reply! Thansk very much.
Hi Wei Liu,
You would have to explain the transformation of your variables, but
perhaps something like:
library(plotrix)
color2D.matplot(log(example_data+0.01),extremes=c("red","blue"))
would do what you want.
Jim
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.