plot.mwd(wavethresh)
plot.mwd()所属R语言包:wavethresh
Use plot on an mwd object.
使用打印的MWD对象上。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots the wavelet coefficients of a mwd class object.
绘制一个mwd类对象的小波系数。
用法----------Usage----------
## S3 method for class 'mwd':
plot(x, first.level = 1, main = "Wavelet Decomposition Coefficients",
scaling = "compensated", rhlab = FALSE, sub = x$filter$name,
NotPlotVal = 0.05, xlab = "Translate", ylab = "Resolution level",
return.scale = TRUE, colour = (2npsi + 1)), ...)
参数----------Arguments----------
参数:x
The mwd object whose coefficients you wish to plot.
mwd对象,你想绘制的系数。
参数:first.level
The first resolution level to begin plotting at. This argument can be quite useful when you want to supress some of the coarser levels in the diagram.
第一项决议,开始图。当你想来说,拦截一些粗糙的水平在图中,此参数可以是非常有用的。
参数:main
The main title of the plot.
主标题的图。
参数:scaling
How you want the coefficients to be scaled. The options are: "global" - one scale factor is chosen for the whole plot. The scale factor depends on the coefficient to be included on the plot that has the largest absolute value. The global option is useful when comparing coefficients that might appear anywhere in the plot; "by.level" - a scale factor is chosen for each resolution level in the plot. The scale factor for a level depends on the coefficient in that level that has the largest absolute value. The "by.level" option is useful when you wish to compare coefficients within a resolution level.
你怎么想的系数进行调整。选项为:“global” - 选择一个比例因子为整个小区。规模因素取决于系数的绝对值最大的图,被列入。全局选项是有用的比较系数时,可能出现在任何地方的图;“by.level” - 选择的比例系数为每个分辨率级别的图。的比例因子的水平依赖于在该级别的系数,具有最大绝对值。 “by.level”选项是非常有用的,当你想比较的分辨率级别内的系数。
The other option is "compensated" which is the same as "global" except for that finer scales' coefficients are scaled up by a factor of SQRT(2) for compensated. This latter options is sometimes useful.
另一种选择是“compensated”“global”除了扩大规模的一个因素SQRT(2)compensated,更精细的尺度系数是一样的。这后一种选项有时是有用的。
参数:rhlab
If T then a set of labels is produced on the right hand axis. The axis labels in this case refer to the scale factors used to scale each level and correspond to value of the largest coefficient (in absolute value) in each scale (when scaling=="by.level") or absolutely (when scaling="global"). If the rhlab argument is FALSE then no right hand axis labels are produced.
如果T然后右手轴线上产生一组标签。在这种情况下的轴标签是指使用的比例因子缩放每个级别对应的值在每个尺度最大的系数(绝对值)(当scaling=="by.level")或绝对(scaling="global") 。如果rhlab论点是FALSE然后没有右手轴标签。
参数:sub
A subtitle for the plot.
字幕的图。
参数:NotPlotVal
Doesn't seem to be implemented.
似乎并没有得到落实。
参数:xlab
A title for the x-axis
一个标题为x轴
参数:ylab
A title for the y-axis
一个标题为y轴
参数:return.scale
If true (default) the scale for each resolution level is returned
如果返回true(默认)的分辨率级别为每个规模
参数:colour
A vector of length mwd$npsi, the values of which are the colours used to plot the coefficients, one for each distinct type of wavelet (with apologies to our American cousins for spelling colour correctly!)
一个矢量的长度mwd$npsi,其值是使用的颜色来绘制系数,为每个不同类型的小波(拼写正确的颜色与我们的美国亲戚道歉!)
参数:...
other arguments to be supplied to plot.
其他参数提供给图。
Details
详细信息----------Details----------
Produces a plot similar to the ones in Donoho and Johnstone, 1994.
产生类似的,在Donoho和Johnstone,1994年的一个图。
Wavelet coefficients for each resolution level are plotted one above the other, with the high resolution coefficients at the bottom, and the low resolution at the top. Each vector is represented by mwd$npsi lines one for each element in the coefficient vector. If colour is supported by the device each element will be represented by a different coulour. The coefficients are plotted using the segment function, with a large positive coefficient being plotted above an imaginary horizontal centre line, and a large negative coefficient plotted below it. The position of a coefficient along a line is indicative of the wavelet basis function's translate number.
每个分辨率等级的小波系数绘制一个在另一个之上,在底部与高分辨率的系数,和在顶部的低分辨率。每个向量表示mwd$npsi系数向量中的每个元素之一。如果颜色是设备所支持的每个元素将被表示由不同coulour。该系数被绘制使用segment函数,与一个大的正系数被绘制以上的假想的水平中心线,和一个大的负系数下面的曲线所示。系数沿一条直线的位置是小波基函数的翻译数量的指标。
The resolution levels are labelled on the left-hand side axis, and the maximum values of the absolute values of the coefficients for the particular level form the right-hand side axis.
被标记的分辨率水平上的左手侧轴线,为特定级别的系数的绝对值的最大值形成右手侧轴。
The levels of coefficients can be scaled in three ways. If you are not interested in comparing the relative scales of coefficients from different levels, then the default scaling option, "by.level" is what you need. This computes the maximum of the absolute value of the coefficients at a particular level and scales the so that the fit nicely onto the plot. For this option, each level is scaled DIFFERENTLY. To obtain a uniform scale for all the levels specify the "global" option to the scaling argument. This will allow you to make inter-level comparisons.
系数的水平,可以以三种方式进行缩放。如果你不感兴趣,在比较的相对尺度系数从不同的层面,那么默认的缩放选项,“by.level”是你所需要的。此计算的系数的绝对值的最大值,在一个特定的水平和尺度,使得拟合的图上很好。对于此选项,每个级别的缩放比例不同。要获得一个统一的尺度,所有级别global参数指定“scaling”选项。这将允许你跨级比较。
值----------Value----------
Axis labels for each resolution level unless return.scale=F when NULL is returned. The axis values are the maximum of the absolute value of the coefficients at that resolution level. They are returned because they are sometimes hard to read on the plot.
分辨率级别为每个轴标签,除非return.scale=FNULL返回。轴的值是在该分辨率等级的系数的绝对值的最大值。他们返回,因为他们有时很难读的图。
RELEASE----------RELEASE----------
注意----------Note----------
A plot of the coefficients contained within the mwd object at each resolution level is produced.
的图包含在mwd对象中,在每个分辨率级别的系数。
(作者)----------Author(s)----------
G P Nason
参见----------See Also----------
accessC.mwd, accessD.mwd, draw.mwd, mfirst.last, mfilter.select, mwd, mwd.object, mwr, print.mwd, putC.mwd, putD.mwd, summary.mwd, threshold.mwd, wd, wr.mwd.
accessC.mwd,accessD.mwd,draw.mwd,mfirst.last,mfilter.select,mwd,mwd.object,mwr,print.mwd,putC.mwd,putD.mwd,summary.mwd,threshold.mwd,wd,wr.mwd。
实例----------Examples----------
#[]
# Generate some test data[生成一些测试数据。]
#[]
test.data <- example.1()$y
## Not run: ts.plot(test.data)[#不运行:ts.plot(test.data)]
#[]
# Decompose test.data with multiple wavelet transform and[多小波变换和分解test.data]
# plot the wavelet coefficients[绘制小波系数]
#[]
tdmwd <- mwd(test.data)
## Not run: plot(tdmwd)[#不运行:图(tdmwd)]
#[1] 1.851894 1.851894 1.851894 1.851894 1.851894 1.851894 1.851894[[1] 1.851894 1.851894 1.851894 1.851894 1.851894 1.851894 1.851894]
#[]
# You should see a plot with wavelet coefficients like in[你应该看到一个图与小波系数,如在]
# plot.wd but at each coefficient position[plot.wd,但在每个系数的位置]
# there are two coefficients in two different colours one for each of[在两种不同的颜色有两个系数一个为每一个]
# the wavelets at that position.[小波在该位置。]
#[]
# Note the scale for each level is returned by the function. [请注意每个级别由该函数返回的规模。]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|