nov*_*eek 3 matlab color-scheme r
我正在研究R中的图像处理.目前我正在使用默认的配色方案(topo,terrain,rainbow,heat,cm).但是,我想使用Matlab提供的配色方案(特别是黑色到黄色配色方案 - 热)和R.有没有办法在R中使用这些配色方案?我使用了OOMPA软件包,其中包括用于生物图像的其他颜色方案(http://bioinformatics.mdanderson.org/Software/OOMPA/ClassDiscovery/html/colorSchemes.html),但这并没有解决目的.
Matlab配色方案http://www.mathworks.de/help/matlab/ref/colormap-dropdown.gif
install.packages("dcemriS4", dependencies=TRUE)
library(dcemriS4)
hotmetal(10)
image(outer(1:20,1:20,"+"), col=hotmetal(75), main="hotmetal")
Run Code Online (Sandbox Code Playgroud)

为了教新手"如何捕鱼",我会承认我事先并不知道这一点,我所做的是:
install.packages("sos") # which I consider to essential in ones R tool chest of search strategies
library(sos) # actually it's in my .Rprofile
findFn("color matlab hot")
Run Code Online (Sandbox Code Playgroud)
它找到了dcemri http://finzi.psych.upenn.edu/R/library/dcemri/html/hotmetal.html
我只library(dcemriS4)在当前的软件包中找到,所以我加载了它,并在旧的软件包帮助页面中使用代码进行了一次拍摄......成功.