Skip to content

Commit

Permalink
note on stats='boxplot' for geom_tufteboxplot
Browse files Browse the repository at this point in the history
  • Loading branch information
bbolker authored and jrnold committed Feb 8, 2024
1 parent f9a3932 commit a598211
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
7 changes: 7 additions & 0 deletions R/geom-tufteboxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
#' @param hoffset controls how much the interquartile line is offset from the
#' whiskers when \code{median.type = 'line'}. This is a fraction of the
#' range of \code{x}.
#' @param stat The statistical transformation to use on the data for this
#' layer, as a string. The default (\code{stat = 'fivenumber'}) calls
#' \code{\link{stat_fivenumber}} and produces whiskers that extend
#' from the interquartile range to the extremes of the data; specifying
#' \code{\link{stat_boxplot}} will produce a more traditional boxplot
#' with whiskers extending to the most extreme points that are < 1.5 IQR
#' away from the hinges (i.e., the first and third quartiles).
#' @family geom tufte
#' @export
#'
Expand Down
2 changes: 2 additions & 0 deletions inst/examples/ex-geom_tufteboxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ p + geom_tufteboxplot(median.type = "line")
p + geom_tufteboxplot() +
theme_tufte() +
theme(axis.ticks.x = element_blank())
# traditional boxplot with whiskers only out to 1.5 IQR, outlier points
p + geom_tufteboxplot(stat="boxplot", outlier.shape = 5)
11 changes: 8 additions & 3 deletions man/geom_tufteboxplot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a598211

Please sign in to comment.