【问题标题】:Plotting an interaction in R - error not able to access "sj.setGeomColors."在 R 中绘制交互 - 错误无法访问“sj.setGeomColors”。
【发布时间】:2016-02-05 04:06:27
【问题描述】:

这是我在 R 中收到的消息的代码:

> library(sjPlot)

    Attaching package: ‘sjPlot’

    The following objects are masked _by_ ‘.GlobalEnv’:

    adjust_plot_range, sjp.int

    Warning message:
    package ‘sjPlot’ was built under R version 3.1.3 

库(sjmisc)

   Warning message:
   package ‘sjmisc’ was built under R version 3.1.3 

库(ggplot2)

   Warning message:
   package ‘ggplot2’ was built under R version 3.1.3 

数据(efc)

sjp.setTheme(theme = "539", axis.title.size = .85, axis.textsize = .85, legend.size = .8, geom.label.size = 3.5)

适合

总结(适合)

sjp.int(fit, type = "cond")

 Error: could not find function "sj.setGeomColors"

R 能够读取回归公式“VC ~ Pvty * W”,但由于某种原因无法访问正确的包或显示图形的其他问题。我需要在 R 中绘制交互图。

【问题讨论】:

    标签: r statistics package


    【解决方案1】:

    查看警告:sjp.int 已被您的全局环境所掩盖。您需要先清除工作区,然后它才能工作。

    另外,比较两种绘图类型type = "cond" 和type = "eff"。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-28
      • 2020-01-18
      • 2021-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多