intpalette(shape)
intpalette()所属R语言包:shape
color palettes
调色板
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns color(s) that are a linear interpolation of a given set of colors.
返回颜色(s)表示的一组给定的颜色是一个线性插值。
用法----------Usage----------
intpalette(inputcol, numcol = length(x.to), x.from = NULL, x.to = NULL)
参数----------Arguments----------
参数:inputcol
initial colors, *from* where to interpolate.
初始的颜色,*从*内插。
参数:numcol
number of colors to interpolate *to*.
数量的颜色进行内插*到*。
参数:x.from
x-values *from* where to interpolate.
x值*从*到哪里插。
参数:x.to
x-values where to interpolate *to*.
x值进行插值*到*。
Details
详细信息----------Details----------
Return value is a vector of *colors* in hexadecimal format.
返回值是一个向量*颜色*以十六进制格式。
This is different from colorRamp(R function), that returns a *function*
这是不同colorRamp(R功能),该函数返回一个函数*
值----------Value----------
a vector of character strings giving the interpolated colors in hexadecimal format
给予的字符串的矢量内插以十六进制格式的颜色
(作者)----------Author(s)----------
Karline Soetaert <karline.soetaert@nioz.nl>
参见----------See Also----------
greycol, femmecol, shadepalette, colorRamp for comparable R function
greycol,femmecol,shadepalette,colorRamp可比性的R功能
实例----------Examples----------
intpalette(c("white", "black"), n = 10)
grey(seq(1, 0, length.out = 10))
image(matrix(nrow = 1,ncol = 100, data = 1:100),
col = intpalette(c("red", "blue"), numcol = 100),
main = "intpalette")
image(matrix(nrow = 1, ncol = 100, data = 1:100),
col = intpalette(c("red", "blue", "yellow"), numcol = 100),
main = "intpalette")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|