24小时热门版块排行榜    

查看: 12364  |  回复: 7
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

zhenlisha

银虫 (小有名气)

[求助] VPA分析(Vegan包Varpart程序) 已有1人参与

这是varpart自带example,求大神解读:三个因子,为什么跑完程序图中会出现四个圈?
data(mite)
data(mite.env)
data(mite.pcnm)

# two explanatory data frames -- hellinger-transform y
mod <- varpart(mite, mite.env, mite.pcnm, transfo="hel" )
mod

## use fill colours
showvarparts(2, bg = c("hotpink","skyblue" ))
plot(mod, bg = c("hotpink","skyblue" ))
## test fraction [a] using partial rda, '~ .' in formula tells to use
## all variables of data mite.env.
afrac <- rda(decostand(mite, "hel" ) , mite.env, mite.pcnm)
anova(afrac)
## rsquareadj gives the same result as component [a] of varpart
rsquareadj(afrac)

## partition bray-curtis dissimilarities
varpart(vegdist(mite), mite.env, mite.pcnm)
## three explanatory tables with formula interface
mod <- varpart(mite, ~ subsdens + watrcont, ~ substrate + shrub + topo,
   mite.pcnm, data=mite.env, transfo="hel" )
mod
showvarparts(3, bg=2:4)
plot(mod, bg=2:4)

## use rda to test fraction [a]
## matrix can be an argument in formula
rda.result <- rda(decostand(mite, "hell" ) ~ subsdens + watrcont +
   condition(substrate + shrub + topo) +
   condition(as.matrix(mite.pcnm)), data = mite.env)
anova(rda.result)

## four explanatory tables
mod <- varpart(mite, ~ subsdens + watrcont, ~substrate + shrub + topo,
  mite.pcnm[,1:11], mite.pcnm[,12:22], data=mite.env, transfo="hel" )
mod
plot(mod, bg=2:5)
## show values for all partitions by putting 'cutoff' low enough:
plot(mod, cutoff = -inf, cex = 0.7, bg=2:5)

[ last edited by jjdg on 2019-5-7 at 09:11 ]

[ Last edited by jjdg on 2019-5-7 at 09:11 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhenlisha

银虫 (小有名气)

一直看赖老师的书和文章,听课的感觉完全不同。老师很专业,讲解很耐心,小白也收获很多。帮老师宣传一下,有兴趣的朋友们可以报名。http://mp.weixin.qq.com/s?__biz= ... 3&srcid=#rd
4楼2019-05-27 11:14:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

xp198766

铁杆木虫 (著名写手)

小木虫职业打酱油滴~~!


jjdg: 金币+1, 感谢参与回帖 2019-05-07 09:11:52
你最后都是  ## Four explanatory tables,有4项,肯定有4个圈啊
2楼2019-04-22 08:24:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wuchao924929

新虫 (初入文坛)

【答案】应助回帖

楼主请问下你有这个的原始数据吗?我想看下数据格式
5楼2019-08-29 21:01:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

changling

银虫 (小有名气)

看不懂 这个几个是啥意思,特请教~ subsdens + watrcont, ~ substrate + shrub + topo,
6楼2020-05-01 13:22:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085600 材料与化工 295 求调剂 +8 dream…… 2026-03-10 8/400 2026-03-10 18:24 by ms629
[考研] 求调剂材料专硕293 +6 段_(:з」∠)_ 2026-03-10 6/300 2026-03-10 18:22 by ms629
[考研] 材料与化工求调剂 +11 与冬清宁 2026-03-07 14/700 2026-03-10 14:23 by Linda Hu
[考研] 0817一志愿苏州大学280复试调剂 +9 kk扛 2026-03-07 9/450 2026-03-10 14:20 by peike
[考研] 求调剂 一志愿苏州大学,0856化工323分 | 本科应化 | 有专利/竞赛/科研助手经历 | +7 橙子cyx 2026-03-06 9/450 2026-03-10 12:03 by kiokin
[考研] 294 英二数二物化 求调剂 +6 米饭团不好吃 2026-03-09 6/300 2026-03-09 23:55 by barlinike
[考研] 0703化学求调剂 +4 很老实人 2026-03-09 4/200 2026-03-09 13:38 by macy2011
[考研] 材料调剂 +4 xxxcm 2026-03-08 7/350 2026-03-09 10:11 by EBSD
[考研] 301求调剂 +11 朝天椒的双马尾 2026-03-05 11/550 2026-03-08 21:50 by 知足常乐的乐
[考研] 安徽农业大学材料与化学学院0856材料招收调剂 +3 akakk47 2026-03-05 9/450 2026-03-08 21:03 by deng.z.1314
[考研] 求调剂,一志愿华中科大0702,数一英一,293 +4 小罗露一二 2026-03-07 4/200 2026-03-08 16:36 by 星空星月
[考研] 334求调剂 +8 Trying] 2026-03-06 8/400 2026-03-08 14:51 by hmn_wj
[考研] 303求调剂 +8 forgman95 2026-03-05 10/500 2026-03-08 12:41 by 蓝莓都给你
[考研] 308求调剂 +7 倘若起风了呢 2026-03-05 9/450 2026-03-06 22:59 by 倘若起风了呢
[考研] 材料考研339求调剂 +3 Karry*^_^* 2026-03-04 3/150 2026-03-06 00:32 by wutongshun
[考研] 334求调剂 +6 Trying] 2026-03-05 8/400 2026-03-06 00:16 by wutongshun
[考研] 求调剂,学校研究所都可以,材料与化工267分 +6 wmx1 2026-03-05 6/300 2026-03-05 20:01 by houyaoxu
[考研] 复试调剂 +5 呼呼?~+123456 2026-03-05 5/250 2026-03-05 19:43 by caszguilin
[考研] 纺织、生物、化学、材料等专业 +3 Eember. 2026-03-05 7/350 2026-03-05 16:35 by Eember.
[考研] 325求调剂 +5 学家科 2026-03-04 5/250 2026-03-04 14:04 by kakakapanpan
信息提示
请填处理意见