找回密码
 注册
查看: 273|回复: 0

R语言 scales包 cscale()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 22:29:09 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-14 06:06 , Processed in 0.091195 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表