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

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

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

                                        plot.ts with multi-plots and Auto-Title – on 1 page
                                         plot.ts多的图和自动标题 - 第1页

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

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

For longer time-series, it is sometimes important to spread the time-series plots over several subplots. p.ts(.) does this both automatically, and under manual control.
对于较长的时间序列,它在几个次要图,有时是重要的传播时间序列图。 p.ts(。)这两种,自动和手动控制。

Actually, this is a generalization of plot.ts (with different defaults).
其实,这是一个概括的plot.ts(用不同的默认值)。


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


p.ts(x, nrplots = max(1, min(8, n %/% 400)), overlap = nk %/% 16,
     date.x = NULL, do.x.axis = !is.null(date.x), do.x.rug = FALSE,
     ax.format, main.tit = NULL, ylim = NULL, ylab = "", xlab = "Time",
     quiet = FALSE, mgp = c(1.25, .5, 0), ...)



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

参数:x
timeseries (possibly multivariate) or numeric vector.
时间序列(可能是多元)或数字向量。


参数:nrplots
number of sub-plots.  Default: in {1..8}, approximately n/400 if possible.
数的子图。默认值:{1 .. 8},约n/400如果可能的话。


参数:overlap
by how much should subsequent plots overlap. Defaults to about 1/16 of sub-length on each side.
随后的图多少重叠。默认至约1/16的每一侧上的分长度。


参数:date.x
a time “vector” of the same length as x and coercable to class "POSIXct" (see DateTimeClasses).
一时间“矢量”x和coercable的类"POSIXct"(见DateTimeClasses)的长度相同。


参数:do.x.axis
logical specifying if an x axis should be drawn (i.e., tick marks and labels).
逻辑指定x轴应制定(即,刻度线和标签)。


参数:do.x.rug
logical specifying if rug of date.x values should drawn along the x axis.
逻辑规定,如果rugdate.x值应沿x轴的绘制。


参数:ax.format
when do.x.axis is true, specify the format to be used in the call to axis.POSIXct.
当do.x.axis是真实的,指定format中使用的调用axis.POSIXct。


参数:main.tit
Main title (over all plots).  Defaults to name of x.
主标题(图)以上。默认命名的x。


参数:ylim
numeric(2) or NULL; if the former, specifying the y-range for the plots. Defaults to a common pretty range.
数字(2)或NULL,如果是前者,指定的y范围内的图。默认为一个共同的漂亮范围。


参数:ylab, xlab
labels for y- and x-axis respectively, see description in plot.default.
y和x轴的标签,详见plot.default。


参数:quiet
logical; if TRUE, there's no reporting on each subplot.
逻辑,如果TRUE,没有报告在每个插曲。


参数:mgp
numeric(3) to be passed to mult.fig(), see par(mgp = .).
数字(3)要传递给mult.fig(),请参阅par(mgp = .)。


参数:...
further graphic parameters for each plot.ts(..).
进一步的图形参数,对于每plot.ts(..)。


副作用----------Side Effects----------

A page of nrplots subplots is drawn on the current graphics device.
nrplots次要图的页面上绘制当前图形设备。


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


Martin Maechler, <a href="mailto:maechler@stat.math.ethz.ch">maechler@stat.math.ethz.ch</a>; July 1994
(for S).



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

p.ts() calls mult.fig() for setup. Further, plot.ts and plot.
p.ts()mult.fig()设置。此外,plot.ts和plot。


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


stopifnot(require(stats))
## stopifnot(require(datasets))[#stopifnot要求(数据集)]

data(sunspots)
p.ts(sunspots, nr=1) # == usual  plot.ts(..)[==通常plot.ts(..)]
p.ts(sunspots)
p.ts(sunspots, nr=3, col=2)

data(EuStockMarkets)
p.ts(EuStockMarkets[,"SMI"])
## multivariate :[#多元:]
p.ts(log10(EuStockMarkets), col = 2:5)

## with Date - x-axis (dense random dates):[日期 -  X轴(密集的随机日期):]
set.seed(12)
x <- as.Date("2000-02-29") + cumsum(1+ rpois(1000, lambda= 2.5))
z <- cumsum(.1 + 2*rt(1000, df=3))
p.ts(z, 4, date.x = x)
p.ts(z, 6, date.x = x, ax.format = "%b %Y", do.x.rug = TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 06:39 , Processed in 0.023836 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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