【发布时间】:2014-09-18 05:56:19
【问题描述】:
获取R 函数的参数非常简单,可以通过args(functionname) 提取。但我不知道如何从heplots 包中获取heplot 函数的参数。
library(heplots)
?heplot
args(heplot)
function (mod, ...)
NULL
我想得到以下部分:
## S3 method for class 'mlm'
heplot(mod, terms, hypotheses, term.labels = TRUE,
hyp.labels = TRUE, err.label="Error", label.pos=NULL,
variables = 1:2, error.ellipse = !add,
factor.means = !add, grand.mean = !add, remove.intercept = TRUE,
type = c("II", "III", "2", "3"), idata=NULL, idesign=NULL,
icontrasts=c("contr.sum", "contr.poly"),
imatrix=NULL, iterm=NULL, markH0=!is.null(iterm),
manova, size = c("evidence", "effect.size"),
level = 0.68, alpha = 0.05, segments = 40,
center.pch = "+", center.cex=2,
col = getOption("heplot.colors",
c("red", "blue", "black", "darkgreen",
"darkcyan","magenta", "brown","darkgray")),
lty = 2:1, lwd = 1:2,
fill=FALSE, fill.alpha=0.3,
xlab, ylab, main = "", xlim, ylim, axes=TRUE, offset.axes,
add = FALSE, verbose = FALSE, warn.rank = FALSE, ...)
【问题讨论】:
-
能否提供一些测试数据?
-
@voidHead - 此数据已完成。该函数是
args工作所需的所有数据。 -
尝试
args(heplot.mlm),因为该函数正在调用专门针对mlm类对象的方法 -
@thelatemail:args(heplot.mlm) 中的错误:找不到对象“heplot.mlm”
标签: r statistics multivariate-testing