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

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

[复制链接]
发表于 2012-9-30 01:36:48 | 显示全部楼层 |阅读模式
eaxis(sfsmisc)
eaxis()所属R语言包:sfsmisc

                                        Extended / Engineering Axis for Graphics
                                         延期/工程为图形的轴

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

An extended axis() function which labels more prettily, in particular for log-scale axes.
扩展axis()函数标签更加娇滴滴的,特别是log规模轴。

It  makes use of plotmath expressions of the form k * 10^k for labeling a log-scaled axis and when otherwise exponentional formatting would be used.
它使用的plotmath expression的形式k * 10^k标记的对数标度的轴,当,否则exponentional格式化使用。


用法----------Usage----------


eaxis(side, at = ,
      labels = NULL, log = NULL,
      f.smalltcl = 3/5, at.small = NULL, small.mult = NULL,
      draw.between.ticks = TRUE,
      outer.at = TRUE, drop.1 = TRUE, las = 1,
      nintLog = max(10, par("lab")[2 - is.x]), max.at = Inf, ...)



参数----------Arguments----------

参数:side
integer in 1:4, specifying side of axis.
在1:4的整数,指定侧的axis。


参数:at
numeric vector of (“normalsized”) tick locations; by default axTicks(side, ..), i.e., the same as axis() would use.
数字向量的(“normalsized”)剔位置,默认情况下axTicks(side, ..),即,一样axis()的会使用。


参数:labels
NULL (default), logical, character or expression, as in axis(); in addition, if NA, labels = TRUE is passed to axis(), i.e. pretty10exp is not used.  Use FALSE to suppress any labeling.
NULL(默认),logical,character或expression,如axis();此外,如果NA,labels = TRUE是传给axis(),即pretty10exp不使用。使用FALSE抑制任何标签。


参数:log
logical or NULL specifying if log-scale should be used; the default depends on the current plot's axis.
逻辑或NULL如果指定log规模应使用缺省值取决于当前图形的轴。


参数:f.smalltcl
factor specifying the lengths of the small ticks in proportion to the normalsized, labeled ticks.
因素确定的小比例的normalsized,标记刻度线刻度线的长度。


参数:at.small
locations of small ticks; the default, NULL, uses small.mult and constructs “smart” locations.
小刻度线的位置,默认情况下,NULL使用small.mult和构建“智能”的位置。


参数:small.mult
positive integer (or NULL), used when at.small is NULL to indicate which multiples of at (typically axTicks()) should be used as &ldquo;small ticks&rdquo;.  The default NULL will use 9 in the log case and a number in 2:5 otherwise. </table>
正整数(或NULL),使用时at.small是NULL表示at(通常axTicks())的倍数,应使用“小滴答”的。将使用的默认NULL 9在log的情况下,一些在2:5,否则。 </ TABLE>


参数:draw.between.ticks
(only if log is true): logical indicating that possible (non-small) ticks between the labeled (via at) ones should be drawn as well (and possibly also used for at.small construction).
(只有log是真实的):逻辑表示可能(非小)之间的标记(通过at)的刻度线,应制定以及(也可能用于at.small的建设期)。


参数:outer.at
logical specifying that at.small should also be constructed outside the at range, but still inside the corresponding par("usr").
逻辑指定at.small应该也可以构建at范围之外,但仍留在对应的par("usr")。


参数:drop.1
logical specifying if "1 *" should be dropped from labels, passed to pretty10exp().
逻辑指定传递给"1 *"如果pretty10exp()应该被丢弃的标签,。


参数:nintLog
only used in R > 2.13.x, when log is true: approximate (lower bound on) number of intervals for log scaling.
只用在R> 2.13.x,当log是真实的:近似数(下限)的log缩放的间隔。


参数:max.at
maximal number of at values to be used effectively.  If you don't specify at yourself carefully, it is recommended to set this to something like 25.
at的最大数量值,以有效地使用。如果你不指定at:“你自己小心,建议将其设置为类似25。


参数:las, ...
arguments passed to (the first) axis call.  Note that the default las = 1 differs from axis's default las = 0.
参数传递给(第一)axis调用。注意的默认las = 1不同从axis的默认las = 0。


(作者)----------Author(s)----------


Martin Maechler



参见----------See Also----------

axis, axTicks, axTexpr, pretty10exp.
axis,axTicks,axTexpr,pretty10exp。


实例----------Examples----------


x <- lseq(1e-10, 0.1, length = 201)
plot(x, pt(x, df=3), type = "l", xaxt = "n", log = "x")
eaxis(1)
## without small ticks:[#不小刻度线:]
eaxis(3, at.small=FALSE, col="blue")

## If you like the ticks, but prefer traditional (non-"plotmath") labels:[#如果你喜欢的刻度线,但更喜欢传统的(非“plotmath”)标签:]
plot(x,  gamma(x),   type = "l", log = "x")
eaxis(1, labels=NA)

x <- lseq(.001, 0.1, length = 1000)
plot(x, sin(1/x)*x, type = "l", xaxt = "n", log = "x")
eaxis(1)

## non- log-scale : draw small ticks, but no "10^k" if not needed:[#非log规模:画小刻度线,但没有“K”,如果没有必要:]
x <- seq(-100, 100, length = 1000)
plot(x, sin(x)/x, type = "l", xaxt = "n")
eaxis(1)

x <- seq(-1, 1, length = 1000)
plot(x, sin(x)/x, type = "l", xaxt = "n")
eaxis(1)

x <- x/1000
plot(x, 1-sin(x)/x, type = "l", xaxt = "n", yaxt = "n")
eaxis(1)
eaxis(2)
## more labels than default:[预设多个标签:]
op <- par(lab=c(10,5,7))
plot(x, sin(x)/x, type = "l", xaxt = "n")
eaxis(1) # maybe (depending on your canvas), there are too many,[也许(这取决于你的画布),有太多,]
## in that case, maybe use[#在这种情况下,可能使用]
plot(x, sin(x)/x, type = "l", xaxt = "n")
eaxis(1, axTicks(1)[c(TRUE,FALSE)]) # drop every 2nd label[下降每2标签]
eaxis(3, labels=FALSE)

## ore use 'max.at' which thins as well:[#矿使用“max.at”,以及变薄:]
plot(x, sin(x)/x, type = "l", xaxt = "n")
eaxis(1, max.at=6)
par(op)

## From R version 2.14.0, on, this looks better[#从R版本2.14.0,上,这看起来更好]


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 17:51 , Processed in 0.102259 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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