plot.Sample(sound)
plot.Sample()所属R语言包:sound
Plot a Sample Object
绘制一个示例对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot the waveform of a Sample object or a wav file.
绘制一个的样本对象或一个wav文件的波形。
用法----------Usage----------
plot(x,xlab="sample #",ylab=NULL,...)
参数----------Arguments----------
参数:x
a Sample object, or a string giving the name of a wav file. If x is a string, the explicit form plot.Sample must be used.
样品对象,或者一个字符串,给出一个wav文件的名称。如果x是一个字符串,明确的形式plot.Sample必须使用。
参数:xlab
the character string giving the label for the x-axis.
给人的x-轴的标签的字符串。
参数:ylab
For mono Sample objects as usual. For stereo Sample objects, ylab can be a vector of two strings to distinguish the y-labels for the left and the right channel. If ylab=NULL, the presets are used, that is "waveform" for mono samples and c("left","right") for stereo samples.
对于单声道采样对象,像往常一样。对于立体声Sample对象,ylab可以区分的y标签用于左声道和右声道的两个字符串的矢量。如果ylab=NULL,使用的预设,那就是"waveform"单样本和c("left","right")立体声采样。
参数:...
further graphical parameters.
进一步的图形参数。
注意----------Note----------
Use plot(s[interval]) to plot parts of s only (see examples).
使用plot(s[interval])绘制部分s(见示例)。
(作者)----------Author(s)----------
Matthias Heymann
参见----------See Also----------
print.Sample
print.Sample
实例----------Examples----------
plot(s[1:1000])
play(s)
s <- normalize(s)
plot(s[1:1000]) # now the range of the waveform is in [-1,1][现在的范围内的波形是在[-1,1]]
play(s) # no cracks![没有裂缝!]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|