cscale(scales)
cscale()所属R语言包:scales
Continuous scale.
持续的规模。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Continuous scale.
持续的规模。
用法----------Usage----------
cscale(x, palette, na.value = NA,
trans = identity_trans())
参数----------Arguments----------
参数:x
vector of continuous values to scale
向量的连续的值按比例
参数:palette
palette to use. Built in palettes: area_pal, brewer_pal, dichromat_pal, div_gradient_pal, gradient_n_pal, grey_pal, hue_pal, identity_pal, linetype_pal, manual_pal, rescale_pal, seq_gradient_pal, shape_pal
调色板来使用。内置调色板:area_pal,brewer_pal,dichromat_pal,div_gradient_pal,gradient_n_pal,grey_pal,hue_pal,identity_pal ,linetype_pal,manual_pal,rescale_pal,seq_gradient_pal,shape_pal
参数:na.value
value to use for missing values
要使用的值遗漏值
参数:trans
transformation object describing the how to transform the raw data prior to scaling. Defaults to the identity transformation which leaves the data unchanged. Built in transformations: asn_trans, atanh_trans, boxcox_trans, date_trans, exp_trans, identity_trans, log10_trans, log1p_trans, log2_trans, log_trans, logit_trans, probability_trans, probit_trans, reciprocal_trans, reverse_trans, sqrt_trans, time_trans.
转换对象描述了如何将原始数据之前缩放。默认的身份转变,使数据不变。内置的转换:asn_trans,atanh_trans,boxcox_trans,date_trans,exp_trans,identity_trans,log10_trans,log1p_trans ,log2_trans,log_trans,logit_trans,probability_trans,probit_trans,reciprocal_trans,reverse_trans,sqrt_trans, time_trans。
实例----------Examples----------
with(mtcars, plot(disp, mpg, cex = cscale(hp, rescale_pal())))
with(mtcars, plot(disp, mpg, cex = cscale(hp, rescale_pal(),
trans = sqrt_trans())))
with(mtcars, plot(disp, mpg, cex = cscale(hp, area_pal())))
with(mtcars, plot(disp, mpg, pch = 20, cex = 5,
col = cscale(hp, seq_gradient_pal("grey80", "black"))))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|