r - When plotting heatmap using ggplot2, how can I gave NA data a shape -
i using ggplot2 generate heatmap this
http://i61.tinypic.com/1zf321e.png
i use code
ggplot(meltdata, aes(variable, ids)) + theme(axis.ticks = element_blank())+ scale_y_discrete(expand = c(0, 0)) + scale_x_discrete(labels=null,expand = c(0, 0)) + labs(x = "",y = "") + geom_tile(aes(fill = value),colour = "white") + scale_fill_gradient2(na.value ="black",midpoint = -log(0.05,10), +high = "red", low = "steelblue",guide="colourbar")
so far plot this
http://i61.tinypic.com/2nitgm1.jpg
my question is there anyway can change na data points (which black in plot) shape of cross in first plot. less important question can make color more rainbowish first plot instead blue , red?
Comments
Post a Comment