找回密码
 注册
查看: 413|回复: 0

R语言 rockchalk包 mcGraph2()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-27 22:42:34 | 显示全部楼层 |阅读模式
mcGraph2(rockchalk)
mcGraph2()所属R语言包:rockchalk

                                        mcGraph2 draws a 3-D representation of a scatterplot with shadows in the x1-x2 plane.
                                         mcGraph2绘制3-D代表性的散点图X1-X2平面的阴影。

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The observations are represented by blue points floating above the x1-x2 plane. If scaley=1, the end result is a scatterplot "cloud" of the y points above the x1-x2 plane, and gray shadows of the points are cast down from the cloud onto the x1-x2 plane itself. This uses persp to make the actual drawing.
观测X1-X2飞机浮在上面的蓝点表示。如果SCALEY = 1时,最终的结果是的散点图“云”X1-X2飞机,和灰色阴影的点的y点以上被推倒从云到X1-X2飞机本身。这使用persp的,实际的绘制。


用法----------Usage----------


  mcGraph2(x1, x2, y, rescaley = 1, drawArrows = TRUE,
    x1lab, x2lab, ylab, ...)



参数----------Arguments----------

参数:x1
a predictor vector
一个预测向量


参数:x2
a predictor vector
一个预测向量


参数:y
the dependent variable
因变量


参数:rescaley
a single scalar value or a vector of the same length as y.
一个单一的标量值或具有相同的长度为y的向量。


参数:drawArrows
TRUE or FALSE, do you want arrows from the bottom up to observed y?
TRUE或FALSE,你想从底部的箭头观察到的Ÿ?


参数:x1lab
label for the x1 axis, (the one called "xlab" inside persp)
标签X1轴,(称为“xlab”内persp一个)


参数:x2lab
label for the x2 axis, (the one called "ylab" inside persp)
标签X2轴,(称为“ylab”内persp一个)


参数:ylab
label for the y (vertical) axis (the one called "zlab" inside persp)
标签在y(垂直)轴(1名为“zlab”里面persp的)


参数:...
arguments passed to persp
参数传递给persp


值----------Value----------

The perspective matrix from persp (that can be used with trans3d to add more details in the plot)
矩阵,可用于与trans3d添加更多的细节在图来自persp()的立体


(作者)----------Author(s)----------



Paul E. Johnson <pauljohn@ku.edu>




实例----------Examples----------


set.seed(12345)
## Create data with x1 and x2 correlated at 0.10[#创建x1和x2的相关数据,在0.10]
dat <- genCorrelatedData(rho=.1, stde=7)
## This will "grow" the "cloud" of points up from the[#这将“成长”云“点”的]
## x1-x2 axis[#X1-X2轴]
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.0, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.1, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.2, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.3, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.4, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.5, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.6, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.7, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.8, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 0.9, theta = 0)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 1, theta = 0)

##rotate this[#旋转,]
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 1, theta = 20)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 1, theta = 40)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 1, theta = 60)
mcGraph2(dat$x1, dat$x2, dat$y, rescaley = 1, theta = 80)

## once they reach the top, make them glitter a while[#一旦他们到达山顶,让他们闪闪发亮一段时间]
for(i in 1:20){
  mcGraph2(dat$x1, dat$x2, dat$y, rescaley = runif(length(dat$x1), .9,1.1), theta = 0)
}

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-25 15:25 , Processed in 0.021722 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表