PPV/NPV有病率依存性グラフ

PPV/NPV有病率依存性グラフテンプレート。感度/特異度別の複数条件曲線。

PPVNPV有病率感度特異度predictive value
PPV/NPV有病率依存性グラフ

R Code (ggplot2)

library(ggplot2)

# ---- PPV/NPV vs Prevalence ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Prevalence", limits = c(0, 1)) +
  scale_y_continuous(name = "Predictive Value (%)", limits = c(0, 100)) +
  labs(title = "PPV/NPV vs Prevalence") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))