【问题标题】:R vegan package, betadisperR 素食包,betadisper
【发布时间】:2014-05-06 12:48:03
【问题描述】:

“Betadisper”通过将原始距离减少到主坐标来计算对象与其组质心之间的非欧几里得距离。它是 Levene 方差同质性检验的多元模拟。 http://cc.oulu.fi/~jarioksa/softhelp/vegan/html/betadisper.html

我的问题,我想提取每个样本点(对象)到列表中质心的距离值,这相当于 Betadisper 中可用的箱线图所使用的数据。我怎么能这样做?

x= betadisper(d, group, type = c("centroid”))
boxplot(x)

谢谢!

【问题讨论】:

    标签: r vegan


    【解决方案1】:

    查看str(x),您会找到它:

    x$distances
    with(x, boxplot(distances~group))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多