検査値ボックスプロット

検査値ボックスプロットテンプレート。臨床検査データの分布表示に使用。

検査値ボックス臨床検査分布
検査値ボックスプロット

R Code (ggplot2)

library(ggplot2)

# ---- Lab Values 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 = "Test", limits = c(0, 5)) +
  scale_y_continuous(name = "Value", limits = c(0, 200)) +
  labs(title = "Lab Values Box Plot") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))