Skip to content

Commit 1e64567

Browse files
committed
pre-populate parameters
1 parent 9e1cae9 commit 1e64567

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

R/stat-qq.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232
#' p <- ggplot(df, aes(sample = y))
3333
#' p + stat_qq() + stat_qq_line()
3434
#'
35-
#' # Use fitdistr from MASS to estimate distribution params
36-
#' params <- as.list(MASS::fitdistr(df$y, "t")$estimate)
35+
#' # Use fitdistr from MASS to estimate distribution params:
36+
#' # params <- as.list(MASS::fitdistr(df$y, "t")$estimate)
37+
#' # Here, we use pre-computed params
38+
#' params <- list(m = -0.02505057194115, s = 1.122568610124, df = 6.63842653897)
3739
#' ggplot(df, aes(sample = y)) +
3840
#' stat_qq(distribution = qt, dparams = params["df"]) +
3941
#' stat_qq_line(distribution = qt, dparams = params["df"])

man/geom_qq.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)