薬物相互作用マトリックス

薬物相互作用のパターンをヒートマップで表示するテンプレート。

相互作用マトリックスヒートマップCYP
薬物相互作用マトリックス

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Drug A", limits = c(0, 5)) +
  scale_y_continuous(name = "Drug B", limits = c(0, 5)) +
  labs(title = "Drug Interaction Matrix") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))