ファガンノモグラム

ファガンノモグラムテンプレート。事前確率から事後確率を求める。

faganノモグラム尤度比事前確率事後確率
ファガンノモグラム

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "", limits = c(0, 3)) +
  scale_y_continuous(name = "", limits = c(0, 1)) +
  labs(title = "Fagan Nomogram") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))