[R] plot with 3 axes and different shades
jim at bitwrit.com.au
Wed Feb 12 21:27:20 CET 2014
On 02/13/2014 02:49 AM, Wei Ding wrote:
> Hello, everyone, I have following csv-file(simplified) as instance:
> I have following csv-file:
> with the first column for x-axis (proportion shared), the second for y-axis
> (number of shared segments), the shades for 'number of pairs'.
> In the attachment, you can find the figure.
> I wonder how to realize that the "number of pairs" are denoted by different
> shades as shown in the attachment ? So far, I can plot a histogram by these
> codes, but have no idea how to correctly add information of shades to it.
> shared",ylab="number of shared segments",colour = I("darkgreen"), fill =
> It seems that d + stat_bin2d() may help. Or maybe heatmap?
> Could you give me some suggestions? Best regards
You can do something like this with color2D.matplot (plotrix).
More information about the R-help