ddPlot-methods(RobAStBase)
ddPlot-methods()所属R语言包:RobAStBase
Methods for Function ddPlot in Package ‘RobAStBase’
方法函数ddPlot在包RobAStBase“
译者:生物统计家园网 机器人LoveR
描述----------Description----------
ddPlot-methods
ddPlot方法
用法----------Usage----------
ddPlot(data, dist.x, dist.y, cutoff.x, cutoff.y, ...)
## S4 method for signature 'matrix'
ddPlot(data, dist.x = NormType(), dist.y = NormType(),
cutoff.x, cutoff.y, ...,
cutoff.quantile.x = 0.95, cutoff.quantile.y = cutoff.quantile.x,
transform.x, transform.y = transform.x,
id.n, lab.pts, adj, cex.idn,
col.idn, lty.cutoff, lwd.cutoff, col.cutoff, text.abline = TRUE,
text.abline.x = NULL, text.abline.y = NULL,
cex.abline = par("cex"), col.abline = col.cutoff,
font.abline = par("font"), adj.abline = c(0,0),
text.abline.x.x = NULL, text.abline.x.y = NULL,
text.abline.y.x = NULL, text.abline.y.y = NULL,
text.abline.x.fmt.cx = "%7.2f", text.abline.x.fmt.qx = "%4.2f%%",
text.abline.y.fmt.cy = "%7.2f", text.abline.y.fmt.qy = "%4.2f%%")
## S4 method for signature 'numeric'
ddPlot(data, dist.x = NormType(), dist.y = NormType(),
cutoff.x, cutoff.y, ...,
cutoff.quantile.x = 0.95, cutoff.quantile.y = cutoff.quantile.x,
transform.x, transform.y = transform.x,
id.n, lab.pts, adj, cex.idn,
col.idn, lty.cutoff, lwd.cutoff, col.cutoff, text.abline = TRUE,
text.abline.x = NULL, text.abline.y = NULL,
cex.abline = par("cex"), col.abline = col.cutoff,
font.abline = par("font"), adj.abline = c(0,0),
text.abline.x.x = NULL, text.abline.x.y = NULL,
text.abline.y.x = NULL, text.abline.y.y = NULL,
text.abline.x.fmt.cx = "%7.2f", text.abline.x.fmt.qx = "%4.2f%%",
text.abline.y.fmt.cy = "%7.2f", text.abline.y.fmt.qy = "%4.2f%%")
## S4 method for signature 'data.frame'
ddPlot(data, dist.x = NormType(), dist.y = NormType(),
cutoff.x, cutoff.y, ...,
cutoff.quantile.x = 0.95, cutoff.quantile.y = cutoff.quantile.x,
transform.x, transform.y = transform.x,
id.n, lab.pts, adj, cex.idn,
col.idn, lty.cutoff, lwd.cutoff, col.cutoff, text.abline = TRUE,
text.abline.x = NULL, text.abline.y = NULL,
cex.abline = par("cex"), col.abline = col.cutoff,
font.abline = par("font"), adj.abline = c(0,0),
text.abline.x.x = NULL, text.abline.x.y = NULL,
text.abline.y.x = NULL, text.abline.y.y = NULL,
text.abline.x.fmt.cx = "%7.2f", text.abline.x.fmt.qx = "%4.2f%%",
text.abline.y.fmt.cy = "%7.2f", text.abline.y.fmt.qy = "%4.2f%%")
参数----------Arguments----------
参数:data
data coercable to matrix; the data at which to produce the ddPlot.
数据coercable matrix;数据产生的ddPlot。
参数:...
further arguments to be passed to plot.default, text, and abline
进一步的参数被传递到plot.default,text和abline
参数:dist.x
object of class NormType; the distance for the x axis.
对象的类NormTypex轴的距离为。
参数:dist.y
object of class NormType; the distance for the y axis.
对象的类NormTypey轴的距离为。
参数:cutoff.x
object of class cutoff; the cutoff information for the x axis (the vertical line discriminating 'good' and 'bad' points).
类的对象cutoff,x轴(垂直线区分“好”与“坏”点)截止信息。
参数:cutoff.y
object of class cutoff; the cutoff information for the y axis (the horizontal line discriminating 'good' and 'bad' points).
类的对象cutoff,y轴(区分“好”与“坏”点的水平线)截止信息。
参数:cutoff.quantile.x
numeric; the cutoff quantile for the x axis.
数字;x轴的截止位数。
参数:cutoff.quantile.y
numeric; the cutoff quantile for the y axis.
数字;y轴的截止位数。
参数:transform.x
function; a transformation to be performed before determining the distances of the x axis.
函数;前确定x轴线的距离进行的变换。
参数:transform.y
function; a transformation to be performed before determining the distances of the y axis.
函数;前确定y轴线的距离进行的变换。
参数:id.n
a set of indices (or a corresponding logical vector); to select a subset of the data in argument data.
指数的一组(或对应的逻辑向量);选择参数data中的数据的一个子集。
参数:lab.pts
a vector of labels for the (unsubsetted) data.
(unsubsetted)data的标签的向量。
参数:adj
the corresponding argument for text for labelling the outliers.
对应的参数为text标记的离群值的。
参数:cex.idn
the corresponding cex argument for text for labelling the outliers.
相应的cex参数为text标记的离群值的。
参数:col.idn
the corresponding col argument for text for labelling the outliers.
相应的col参数为text标记的离群值的。
参数:lty.cutoff
the corresponding lty argument for abline for drawing the cutoff lines; either one lty-value (one value or vector) or a list of length 2 of lty-values.
对应的ltyabline用于绘制的截止线的参数; LTY-值的一个值(或向量)的任一个或LTY-值的长度为2的一个列表。
参数:lwd.cutoff
(vector cast to length 2): the corresponding lwd argument for abline for drawing the cutoff lines.
(向量转换为长度为2):对应的lwd参数abline画的明暗截止线。
参数:col.cutoff
(vector cast to length 2): the corresponding col argument for abline for drawing the cutoff lines.
(向量转换为长度为2):对应的col参数abline画的明暗截止线。
参数:text.abline
vector of logicals (cast to length 2): shall text be added to cutoff lines.
向量,逻辑值(转换为长度为2):将文本添加到明暗截止线。
参数:text.abline.x
text to be added to cutoff lines in x direction; if NULL (default) we use “[pp] %-cutoff = [ff]” where [pp] is the percentag up to 2 digits and [ff] is the cutoff value up to 2 digits.
文本被添加到在x方向上的明暗截止线;如果NULL(默认值),我们使用“[页]%截止= [几段]”,其中[页]百分比2位和[几段是的临界值高达2位数。
参数:text.abline.y
text to be added to cutoff lines in y direction; if NULL (default) we use “[pp] %-cutoff = [ff]” where [pp] is the percentag up to 2 digits and [ff] is the cutoff value up to 2 digits.
文本被添加到在y方向上的明暗截止线;如果NULL(默认值),我们使用“[页]%截止= [几段]”,其中[页]百分比2位和[几段是的临界值高达2位数。
参数:cex.abline
vector of numerics (cast to length 2): cex-value for added cutoff text.
向量的数值计算(转换为长度为2):CEX的价值增值截止文本的。
参数:col.abline
vector of length 2: color for added cutoff text.
向量长度为2:增值截止文本的颜色。
参数:font.abline
vector of length 2: font for added cutoff text.
向量长度为2:增值截止文本的字体。
参数:adj.abline
cast to 2 x 2 matrix (by recycling rules): adjustment values for added cutoff text.
转换为2×2矩阵(回收规则):调整值增值截止文本。
参数:text.abline.x.y
y-coordinate of text to be added to cutoff lines in x direction; if NULL (default) set to mid of mean(par("usr")[c(3,4)]).
y坐标的文本被添加到明暗截止线在x方向,如果NULL(默认)设置为mean(par("usr")[c(3,4)])中旬。
参数:text.abline.y.x
x-coordinate of text to be added to cutoff lines in y direction; if NULL (default) set to mid of mean(par("usr")[c(1,2)]).
x坐标的文本被添加到明暗截止线在y轴方向,如果NULL(默认)设置为mean(par("usr")[c(1,2)])中旬。
参数:text.abline.x.x
x-coordinate of text to be added to cutoff lines in x direction; if NULL (default) set to 1.05 times the cutoff value.
x坐标的文本被添加到在x方向上的遮断线;若NULL(默认值)设定的截止值的1.05倍。
参数:text.abline.y.y
y-coordinate of text to be added to cutoff lines in y direction; if NULL (default) set to 1.05 times the cutoff value.
y坐标的文本被添加到在y方向上的明暗截止线;如果NULL(默认值)设定的截止值的1.05倍。
参数:text.abline.x.fmt.cx
format string (see gettextf) to format the cutoff value in label in x direction.
格式字符串(见gettextf)来格式化的临界值在x方向上的标签。
参数:text.abline.x.fmt.qx
format string to format cutoff probability in label in x direction.
格式字符串格式化截止概率在x方向上的标签。
参数:text.abline.y.fmt.cy
format string to format the cutoff value in label in y direction.
格式字符串格式化的临界值,在y方向上的标签。
参数:text.abline.y.fmt.qy
format string to format cutoff probability in label in y direction.
格式字符串格式化截止概率在y方向上的标签。
Details
详细信息----------Details----------
The matrix-method calls .ddPlot.MatNtNtCoCo, the numeric- and data.frame-methods coerce argument data to matrix — the numeric-method by a call to matrix(data, nrow=1), in the data.frame-methods by a call to t(as.matrix(data)).
matrix方法调用.ddPlot.MatNtNtCoCo,numeric - data.frame方法强迫参数datamatrix - numeric 方法调用matrix(data, nrow=1),在方法的调用data.frame t(as.matrix(data))。
In arguments text.abline.x and text.abline.y the following patterns are substituted:
在参数text.abline.x和text.abline.y以下模式所取代:
"%qx"cutoff-quantile in x-direction
"%qx"截止在x方向的分量
"%qy"cutoff-quantile in y-direction
"%qy"截止在y方向的分量
"%cx"cutoff-value in x-direction
"%cx"截止值在x方向
"%cy"cutoff-value in y-direction
"%cy"在y方向上的截止值
值----------Value----------
a list with items <table summary="R valueblock"> <tr valign="top"><td>id.x</td> <td> the indices of (possibly transformed) data (within subset id.n) beyond the x-cutoff</td></tr> <tr valign="top"><td>id.y</td> <td> the indices of (possibly transformed) data (within subset id.n) beyond the y-cutoff</td></tr> <tr valign="top"><td>id.xy</td> <td> the indices of (possibly transformed) data (within subset id.n) beyond the x-cutoff and the y-cutoff</td></tr> <tr valign="top"><td>qtx</td> <td> the quantiles of the distances of the (possibly transformed) data in x direction</td></tr> <tr valign="top"><td>qty</td> <td> the quantiles of the distances of the (possibly transformed) data in y direction</td></tr> <tr valign="top"><td>cutoff.x.v</td> <td> the cutoff value in x direction</td></tr> <tr valign="top"><td>cutoff.y.v</td> <td> the cutoff value in y direction</td></tr> </table>
列表中的项目(子集<table summary="R valueblock"> <tr valign="top"> <TD> id.x</ TD> <TD>指数可能转化数据<X >)超越id.n截止</ TD> </ TR> <tr valign="top"> <TD> x</ TD> <TD>指数(可能转化)数据(子集id.y)超出了id.n截止</ TD> </ TR> <tr valign="top"> <TD> y</ TD> <TD>指数可能转化数据(子集id.xy)超出了id.n截止x的截止</ TD> </ TR> <TR VALIGN =“顶” > <TD> y </ TD> <TD>的距离可能转化中的数据的位数qtx方向</ TD> </ TR> <TR VALIGN =“顶” > <TD> x </ TD> <TD>的距离可能转化中的数据的位数qty方向</ TD> </ TR> <TR VALIGN =“顶” > <TD> y </ TD> <TD>的临界值在cutoff.x.v方向</ TD> </ TR> <tr valign="top"> <TD>x </ TD> <TD>的临界值cutoff.y.v方向</ TD> </ TR> </表>
(作者)----------Author(s)----------
Peter Ruckdeschel <a href="mailtoeter.Ruckdeschel@itwm.fraunhofer.de">eter.Ruckdeschel@itwm.fraunhofer.de</a>
实例----------Examples----------
MX <- matrix(rnorm(1500),nrow=6)
QM <- matrix(rnorm(36),nrow=6); QM <- QM %*% t(QM)
ddPlot(data=MX, dist.y=QFNorm(QuadF=PosSemDefSymmMatrix(QM)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|