疼痛部位ヒートマップ

疼痛部位別の経時変化をヒートマップで表示するテンプレート。

疼痛部位ヒートマップ経時
疼痛部位ヒートマップ

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Location", limits = c(0, 6)) +
  scale_y_continuous(name = "Time", limits = c(0, 4)) +
  labs(title = "Pain Location Heatmap") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))