棒グラフ+エラーバー

棒グラフ+エラーバーテンプレート。群間の平均値比較に使用。

棒グラフエラーバー平均値SE
棒グラフ+エラーバー

R Code (ggplot2)

library(ggplot2)

# ---- Bar Chart with Error Bars ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Group", limits = c(0, 5)) +
  scale_y_continuous(name = "Mean +/- SE", limits = c(0, 100)) +
  labs(title = "Bar Chart with Error Bars") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))