# NOT RUN {
prob <- dDtrend(k = "all", n = 9)
values <- as.integer(names(prob))
plot(c(values[1], values[1]), c(0, prob[1]), type = "l",
axes = FALSE, xlab = expression(k), ylab = expression(Pr(D == k)),
xlim = c(0, 250), yaxs = "i", ylim = c(0, 1.05 * max(prob)))
axis(side = 1, at = seq(0, 250, 25), las = 2)
for (i in seq_along(values)) {
lines(c(values[i], values[i]), c(0, prob[i]))
}
# }
Run the code above in your browser using DataLab