我正在尝试在 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)