R Plotting two datasets with smoothScatter() with the same color scheme

前提是你 提交于 2019-12-24 13:12:41

问题


I would like to plot the two dimensional densities of two different datasets using the smoothScatter() function:

smoothScatter(confdiffCovCorrect$meth.diff, confdiffCovCorrect$qvalue)
smoothScatter(logdiffCovCorrect$meth.diff, logdiffCovCorrect$qvalue)`

But, in order to compare the two datasets using the plots, I want the color code to be identical. That is, I want a given value Xi of the density function to correspond to the same color in both plots.

Is this possible?

来源:https://stackoverflow.com/questions/29891478/r-plotting-two-datasets-with-smoothscatter-with-the-same-color-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!