Skip to content

Commit

Permalink
add refs to thickness article from other docs, closes #205
Browse files Browse the repository at this point in the history
  • Loading branch information
mjskay committed Feb 10, 2024
1 parent 2a164da commit 64b5828
Show file tree
Hide file tree
Showing 24 changed files with 102 additions and 34 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ New features and enhancements:
Documentation:

* The pkgdown documentation now includes an online article on the `thickness`
aesthetic and how its scaling works.
aesthetic and with comprehensive examples of how slab scaling works (#205).

Bug fixes:

Expand Down
2 changes: 1 addition & 1 deletion R/auto_partial.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ auto_partial = function(f, name = NULL) {
# the partial self function
quote(partial_self)
} else {
# when auto_partial is called from within the ggdist namespace, we need to
# when auto_partial is called from outside the ggdist namespace, we need to
# inline the partial_self function so that it is guaranteed to be found
partial_self
}
Expand Down
6 changes: 5 additions & 1 deletion R/geom_slabinterval.R
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ GeomSlabinterval = ggproto("GeomSlabinterval", AbstractGeom,
sides (as in a violin plot).',
scale =
'What proportion of the region allocated to this geom to use to draw the slab. If `scale = 1`,
slabs that use the maximum range will just touch each other. Default is `0.9` to leave some space.',
slabs that use the maximum range will just touch each other. Default is `0.9` to leave some space
between adjacent slabs. For a comprehensive discussion and examples of slab scaling and normalization,
see the [`thickness` scale article](https://mjskay.github.io/ggdist/articles/thickness.html).',
justification =
'Justification of the interval relative to the slab, where `0` indicates bottom/left
justification and `1` indicates top/right justification (depending on `orientation`). If `justification`
Expand Down Expand Up @@ -653,6 +655,8 @@ GeomSlabinterval = ggproto("GeomSlabinterval", AbstractGeom,
\\item `"none"`: values are taken as is with no normalization (this should probably
only be used with functions whose values are in \\[0,1\\], such as CDFs).
}
For a comprehensive discussion and examples of slab scaling and normalization, see the
[`thickness` scale article](https://mjskay.github.io/ggdist/articles/thickness.html).
'),
fill_type = glue_doc('
What type of fill to use when the fill color or alpha varies within a slab. One of:
Expand Down
2 changes: 2 additions & 0 deletions R/scale_thickness.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#' that support the `thickness` aesthetic (such as [geom_slabinterval()]). It
#' can be used to align the `thickness` scales across multiple geoms (by default,
#' `thickness` is normalized on a per-geom level instead of as a global scale).
#' For a comprehensive discussion and examples of slab scaling and normalization,
#' see the [`thickness` scale article](https://mjskay.github.io/ggdist/articles/thickness.html).
#'
#' @inheritParams ggplot2::continuous_scale
#' @inheritDotParams ggplot2::continuous_scale
Expand Down
4 changes: 3 additions & 1 deletion man/geom_dots.Rd

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

4 changes: 3 additions & 1 deletion man/geom_dotsinterval.Rd

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

8 changes: 6 additions & 2 deletions man/geom_slab.Rd

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

8 changes: 6 additions & 2 deletions man/geom_slabinterval.Rd

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

8 changes: 6 additions & 2 deletions man/geom_spike.Rd

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

4 changes: 3 additions & 1 deletion man/geom_swarm.Rd

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

4 changes: 3 additions & 1 deletion man/geom_weave.Rd

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

2 changes: 2 additions & 0 deletions man/scale_thickness.Rd

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

8 changes: 6 additions & 2 deletions man/stat_ccdfinterval.Rd

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

8 changes: 6 additions & 2 deletions man/stat_cdfinterval.Rd

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

4 changes: 3 additions & 1 deletion man/stat_dots.Rd

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

4 changes: 3 additions & 1 deletion man/stat_dotsinterval.Rd

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

Loading

0 comments on commit 64b5828

Please sign in to comment.