Skip to content

Commit 93295f5

Browse files
committed
fence in example
1 parent 269ca31 commit 93295f5

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Config/testthat/edition: 3
7979
Encoding: UTF-8
8080
LazyData: true
8181
Roxygen: list(markdown = TRUE)
82-
RoxygenNote: 7.3.1
82+
RoxygenNote: 7.3.2
8383
Collate:
8484
'ggproto.R'
8585
'ggplot-global.R'

R/stat-qq.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@
3535
#' # Use fitdistr from MASS to estimate distribution params:
3636
#' # params <- as.list(MASS::fitdistr(df$y, "t")$estimate)
3737
#' # Here, we use pre-computed params
38-
#' params <- list(m = -0.02505057194115, s = 1.122568610124, df = 6.63842653897)
39-
#' ggplot(df, aes(sample = y)) +
40-
#' stat_qq(distribution = qt, dparams = params["df"]) +
41-
#' stat_qq_line(distribution = qt, dparams = params["df"])
38+
#' if (requireNamespace("MASS", quietly = TRUE)) {
39+
#' params <- list(m = -0.02505057194115, s = 1.122568610124, df = 6.63842653897)
40+
#' ggplot(df, aes(sample = y)) +
41+
#' stat_qq(distribution = qt, dparams = params["df"]) +
42+
#' stat_qq_line(distribution = qt, dparams = params["df"])
43+
#' }
4244
#'
4345
#' # Using to explore the distribution of a variable
4446
#' ggplot(mtcars, aes(sample = mpg)) +

man/geom_qq.Rd

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

0 commit comments

Comments
 (0)