jitterXY(SoDA)
jitterXY()所属R语言包:SoDA
Add random noise to data based on graphics character size
基于图形字符大小的数据中加入随机噪声
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The input data, for x or y axis data, is jittered by a uniform random amount, scaled to the width and height of a character if this data were being plotted.
x或y轴数据,输入数据,抖动由均匀分布的随机量,缩放到一个字符的宽度和高度,如果该数据被绘制。
用法----------Usage----------
jitterXY(x = c(0, 1), y = c(0, 1), xscale = 1, yscale = 1)
jitterX(x, scale = 1)
jitterY(y, scale = 1)
参数----------Arguments----------
参数:x
Numeric data that might be plotted on the horizontal axis.
可能被绘制在横轴上的数值数据。
参数:y
Numeric data that might be plotted on the vertical axis.
可能被绘制在垂直轴的数值数据。
参数:xscale, yscale, scale
How much to scale the random noise on the x, y axis
多少规模上的随机噪声x,y轴
值----------Value----------
For jitterXY a list, with x and y components containing the perturbed versions of the corresponding arguments. Giving this list to plot produces a scatter plot of the two sets of data. If only one coordinate is jittered a vector is returned; this is always the case with jitterX and jitterY.
jitterXY的列表,与x和y组件包含的扰动版本的相应参数。给此列表plot产生的两组数据的散点图。如果只有一个坐标抖动返回一个向量,这是总的情况jitterX和jitterY。
参见----------See Also----------
jitter, which scales data without regard to the plotting parameters.
jitter,它可以扩展数据而不考虑绘图参数。
实例----------Examples----------
## Not run: [#不运行:]
with(sotu, plot(jitterXY(economy, war+peace)))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|