対応ありボックスプロット

対応ありボックスプロットテンプレート。前後比較データの表示に使用。

対応ありボックスプロット前後比較ペア
対応ありボックスプロット

R Code (ggplot2)

library(ggplot2)

# ---- Paired Box Plot ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Time Point", limits = c(0, 3)) +
  scale_y_continuous(name = "Measurement", limits = c(0, 100)) +
  labs(title = "Paired Box Plot") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))