血算推移ヒートマップ

血算値の経時変化をヒートマップで表示するテンプレート。化学療法モニタリング等に使用。

血算ヒートマップ推移化学療法
血算推移ヒートマップ

R Code (ggplot2)

library(ggplot2)

# ---- CBC Trend 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 = "Parameter", limits = c(0, 6)) +
  scale_y_continuous(name = "Day", limits = c(0, 7)) +
  labs(title = "CBC Trend Heatmap") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))