外傷損傷ヒートマップ

外傷の損傷パターンをヒートマップで表示するテンプレート。

外傷損傷ヒートマップメカニズム
外傷損傷ヒートマップ

R Code (ggplot2)

library(ggplot2)

# ---- Trauma Injury 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 = "Body Region", limits = c(0, 5)) +
  scale_y_continuous(name = "Mechanism", limits = c(0, 4)) +
  labs(title = "Trauma Injury Heatmap") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))