小编Ali*_*ina的帖子

在 R 中绘制数据;错误:未为“列表”类型实现默认方法

我正在尝试在 ggplot 中绘制数据(我也尝试了来自 github 的 CRAN 版本),但最终出现错误:

Error in is.finite(x) : default method not implemented for type 'list'
Run Code Online (Sandbox Code Playgroud)

这是情节的代码:

ggplot(SinglePatient, aes(x = Condition, y = new, fill = Session)) +
  stat_summary(fun.y = mean, geom = "bar", color = 'black', size = 1, position = "dodge") +
  stat_summary(fun.data = mean_se, geom ="errorbar", width = .1, size = 1, position = position_dodge(width=.9))+
  xlab("Condition") + ylab("Reaction time (ms)") +
  scale_y_continuous(expand = c(0,0)) +
  plot_theme
Run Code Online (Sandbox Code Playgroud)

这是我正在使用的 data.frame 中的数据示例:


Patient  Session   Stimulus     Trial  Running[Trial]   Block …
Run Code Online (Sandbox Code Playgroud)

plot r ggplot2

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

ggplot2 ×1

plot ×1

r ×1