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

R语言:monthplot()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 17:40:17 | 显示全部楼层 |阅读模式
monthplot(stats)
monthplot()所属R语言包:stats

                                         Plot a Seasonal or other Subseries from a Time Series
                                         绘制时间序列季节性或其他子系列

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

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

These functions plot seasonal (or other) subseries of a time series. For each season (or other category), a time series is plotted.
这些功能积季节性(或其他)的时间序列的子系列。每个季节(或其他类别),绘制时间序列。


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


monthplot(x, ...)

## S3 method for class 'stl'
monthplot(x, labels = NULL, ylab = choice, choice = "seasonal",
          ...)

## S3 method for class 'StructTS'
monthplot(x, labels = NULL, ylab = choice, choice = "sea", ...)

## S3 method for class 'ts'
monthplot(x, labels = NULL, times = time(x), phase = cycle(x),
             ylab = deparse(substitute(x)), ...)

## Default S3 method:[默认方法]
monthplot(x, labels = 1L:12L,
          ylab = deparse(substitute(x)),
          times = seq_along(x),
          phase = (times - 1L)%%length(labels) + 1L, base = mean,
          axes = TRUE, type = c("l", "h"), box = TRUE,
          add = FALSE, ...)



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

参数:x
Time series or related object.
时间序列或相关的对象。


参数:labels
Labels to use for each "season".
每个赛季使用的标签。


参数:ylab
y label.
Ÿ标签。


参数:times
Time of each observation.
每次观测的时间。


参数:phase
Indicator for each "season".
每个“季节”的指标。


参数:base
Function to use for reference line for subseries.
函数使用参考线为子系列。


参数:choice
Which series of an stl or StructTS object?
这系列stl或StructTS对象?


参数:...
Arguments to be passed to the default method or graphical parameters.
参数被传递到默认的方法或图形参数。


参数:axes
Should axes be drawn (ignored if add=TRUE)?
轴应被绘制(如果add=TRUE忽略不计)?


参数:type
Type of plot.  The default is to join the points with lines, and "h" is for histogram-like vertical lines.
图类型。默认是加入点与线,"h"直方图像垂直线。


参数:box
Should a box be drawn (ignored if add=TRUE?
应该绘制一个框(如果add=TRUE忽略?


参数:add
Should thus just add on an existing plot.
因此应增加对现有的图。


Details

详情----------Details----------

These functions extract subseries from a time series and plot them all in one frame.  The ts, stl, and StructTS methods use the internally recorded frequency and start and finish times to set the scale and the seasons.  The default method assumes observations come in groups of 12 (though this can be changed).
这些功能从时间序列中提取的子系列,和他们所有的绘制一帧。 ts,stl,StructTS方法使用的内部记录的频率,并开始和结束时间,设置规模和季节。默认的方法,假设有12组(虽然这是可以改变的)的意见。

If the labels are not given but the phase is given, then the labels default to the unique values of the phase.  If both are given, then the phase values are assumed to be indices into the labels array, i.e., they should be in the range from 1 to length(labels).
如果labels不给,但phase,然后labels默认到phase独特的价值观。如果两个给出,那么phase值假定为成的labels阵列,即指数,他们应该在范围从1到length(labels)。


值----------Value----------

These functions are executed for their side effect of drawing a seasonal subseries plot on the current graphical window.
执行这些功能都为他们绘制当前图形窗口的季节性子系列图的副作用。


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


Duncan Murdoch



参考文献----------References----------

The New S Language. Wadsworth & Brooks/Cole.

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

ts, stl, StructTS
ts,stl,StructTS


举例----------Examples----------


require(graphics)

## The CO2 data[#二氧化碳的数据]
fit <- stl(log(co2), s.window = 20, t.window = 20)
plot(fit)
op <- par(mfrow = c(2,2))
monthplot(co2, ylab = "data", cex.axis = 0.8)
monthplot(fit, choice = "seasonal", cex.axis = 0.8)
monthplot(fit, choice = "trend", cex.axis = 0.8)
monthplot(fit, choice = "remainder", type = "h", cex.axis = 0.8)
par(op)

## The CO2 data, grouped quarterly[#,二氧化碳的数据分组季度]
quarter <- (cycle(co2) - 1) %/% 3
monthplot(co2, phase = quarter)

## see also JohnsonJohnson[#又见JohnsonJohnson]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-2 19:04 , Processed in 0.019589 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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