pretty10exp(sfsmisc)
pretty10exp()所属R语言包:sfsmisc
Nice 10 ** k Label Expressions
尼斯10 ** K标注表达式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Produce nice a * 10^k expressions to be used instead of the scientific notation "a E<k>".
产生很好a * 10^k表达式来使用,而不是科学记数法"a E<k>"。
用法----------Usage----------
pretty10exp(x, drop.1 = FALSE, digits.fuzz = 7)
参数----------Arguments----------
参数:x
numeric vector (e.g. axis tick locations)
数字向量(例如轴刻度位置)
参数:drop.1
logical indicating if 1 * should be dropped from the resulting expressions.
逻辑1 *如果生成的表达式应该被丢弃。
参数:digits.fuzz
number of digits to be considered for integer equality; do not change lightly!
数字位数应考虑的整数平等,不要随意改变!
值----------Value----------
an expression of the same length as x, with elements of the form a %*% 10 ^ k.
的表达式相同的长度x,与形式a %*% 10 ^ k的元素。
(作者)----------Author(s)----------
Martin Maechler
参见----------See Also----------
axTexpr which builds on pretty10exp(); further axis, axTicks.
axTexpr的基础上pretty10exp();进一步axis,axTicks。
实例----------Examples----------
pretty10exp(-1:3 * 1000)
pretty10exp(-1:3 * 1000, drop.1 = TRUE)
pretty10exp(c(1,2,5,10,20,50,100,200) * 1e3)
ax <- 10^(-6:0) - 2e-16
pretty10exp(ax, drop.1=TRUE)
## in sfsmisc version <= 1.0-16, no 'digits',[#在sfsmisc版本<= 1.0-16,没有数字,]
## i.e., implicitly had digits := #{double precision digits} ==[#即隐式的数字:双精度数字#{} ==]
(dig. <- .Machine$double.digits * log10(2)) # 15.95[15.95]
pretty10exp(ax, drop.1=TRUE, digits= dig.) # ``ugly''[丑陋]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|