n.plot(sfsmisc)
n.plot()所属R语言包:sfsmisc
Name Plot: Names or Numbers instead of Points in Plot
名称图:名称或编号,而不是在图点
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A utility function which basically calls plot(*, type="n") and text. To have names or numbers instead of points in a plot is useful for identifaction, e.g., in a residual plot, see also TA.plot.
效用函数基本上调用plot(*, type="n")和text。要的名字或数字,而不是一个图点是非常有用的identifaction,例如,在剩余的图,请参阅TA.plot。
用法----------Usage----------
n.plot(x, y = NULL, nam = NULL, abbr = n >= 20 || max(nchar(nam))>=8,
xlab = NULL, ylab = NULL, log = "",
cex = par("cex"), col = par("col"), ...)
参数----------Arguments----------
参数:x,y
coordinates at which to plot. If y is missing, x is used for both, if it's a data.frame, list, 2-column matrix etc – via xy.coords; formula do not work.
坐标绘制。 y如果丢失,x为,如果它是一个data.frame, list,2列矩阵等 - 通过xy.coords;公式不工作。
参数:nam
the labels to plot at each (x,y). Per default, these taken from the data x and y; case numbers 1:n are taken if no names are available.
标签来绘制在每个(的x,y)。每默认情况下,这些从数据x和y;病例数1:n如果没有名字。
参数:abbr
logical indicating if the nam labels should be abbreviated – with a sensible default.
逻辑表明,如果nam标签应该是缩写 - 一个合理的默认。
参数:xlab,ylab
labels for the x- and y- axis, the latter being empty by default.
对于x轴和y轴的标签,后者是空的预设值。
参数:log
character specifying if log scaled axes should be used, see plot.default.
如果log规模的轴应使用的字符,指定,请参阅plot.default。
参数:cex
plotting character expansion, see par.
绘制字符扩展,par。
参数:col
color to use for text().
要使用的颜色为text()。
参数:...
further arguments to be passed to the plot call.
进一步的参数被传递到plot呼叫。
值----------Value----------
invisibly, a character vector with the labels used.
不可见的字符向量的标签使用。
(作者)----------Author(s)----------
Martin Maechler, since 1992
参见----------See Also----------
plot.default, text.
plot.default,text。
实例----------Examples----------
n.plot(1:20, cumsum(rnorm(20)))
data(cars)
with(cars, n.plot(speed, dist, cex = 0.8, col = "forest green"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|