df1 <- 5
df2 <- 1200
q <- 2.5
p <- 1-pf(q, df1, df2); upr <- max(q, qf(.995, df1, df2))
curve(df(x, df1, df2),
xlim = c(0, upr),
bty = "n",
ylab = "",
xaxt = "n",
col = "#339900",
xlab = "グレーの目盛点は,90%点,95%点,99%点",
main = paste("F分布(df=", df1, ", ", df2, "),確率", round(p*100, 2), "%領域"),
family = "serif")
abline(h = 0, col = "#00000060")
segments(x0 <- seq(q, upr, by = .01), 0,
x0, df(x0, df1, df2), col = "#339900")
axis(side = 1, at = c(q), col.axis = "#006600",
cex.axis = 1.0, las = 2, family = "serif")
axis(side = 1,
at = c(0, qf(.90, df1, df2), qf(.95, df1, df2), qf(.99, df1, df2)),
labels = round(c(0, qf(.90, df1, df2), qf(.95, df1, df2), qf(.99, df1, df2)), 2),
col.axis = "#000000aa",
cex.axis = 0.9,
las = 1,
family = "serif")