shadepalette(shape)
shadepalette()所属R语言包:shape
color palette inbetween two extremes
调色板之间两个极端
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns color(s) that are a linear interpolation between two colors
返回颜色,两种颜色之间的线性插值
these colors are suitable for shading shapes
这些颜色适合形状的阴影
用法----------Usage----------
shadepalette(n = 100, endcol = "red", inicol = "white",
interval = c(0.0, 1.0))
参数----------Arguments----------
参数:n
number of colors.
的颜色数。
参数:endcol
final color.
最后的颜色。
参数:inicol
initial color.
最初的颜色。
参数:interval
interval *to* where to interpolate.
间隔*到*插。
值----------Value----------
a vector of character strings giving the interpolated colors in hexadecimal format
给予的字符串的矢量内插以十六进制格式的颜色
(作者)----------Author(s)----------
Karline Soetaert <karline.soetaert@nioz.nl>
参见----------See Also----------
intpalette, grey, femmecol colorRamp for comparable R functions.
intpalette,grey,femmecolcolorRamp可比性的R功能。
实例----------Examples----------
shadepalette(n = 10, "white", "black")
image(matrix(nrow = 1, ncol = 100, data = 1:100),
col = shadepalette(100, "red", "blue"), main = "shadepalette")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|