Published January 18, 2023
| Version v3.2.1
Software
Open
ggdist: Visualizations of distributions and uncertainty
Description
New features and enhancements:
- Support for non-numeric distributions in
stat_slabinterval()
andstat_dotsinterval()
, includingdist_categorical()
,dist_bernoulli()
, and the upcomingposterior::rvar_factor()
type. (#108) - Various improvements to dotplot layout in
geom_dotsinterval()
:- new
layout = "hex"
allows a hexagonal circle-packing style layout (#161). - new mechanism for smoothing dotplots using the
smooth
parameter, includingsmooth = "bounded"
/smooth = "unbounded"
(for "density dotplots") andsmooth = "discrete"
/smooth = "bar"
(for improved layout of large-n discrete distributions). (#161) - a better bin/dot-nudging algorithm using constrained optimization (#163)
- new
overlaps = "keep"
option disables bin/dot nudging in"bin"
,"hex"
, and"weave"
layouts. This meanslayout = "weave"
withoverlaps = "keep"
will yield exact dot positions. (#161) - The
"weave"
layout now works properly withside = "both"
- fixed binning artifacts when there is high density on the edges, particularly right edges (#144)
- use a max
binwidth
of 1 for discrete distributions (#159) - new
overflow = "compress"
allows layouts to be compressed to fit into the geom bounds if a user-specifiedbinwidth
would otherwise cause the dots to exceed the geom bounds. (#162)
- new
- Two new shortcut geoms for
geom_dotsinterval()
:geom_swarm()
andgeom_weave()
. Both can be used to quickly create "beeswarm"-like plots. - A new "mirrored" scale for the
side
aesthetic,scale_side_mirrored()
, makes it easier to create mirrored slabs and dotplots. (#142) - Custom density estimators can now be used with
stat_slabinterval()
via thedensity
argument, including a new bounded density estimator (density_bounded()
). (#113) - Following the split between
size
andlinewidth
aesthetics in ggplot2 3.4, the following aesthetics have been updated (#138):interval_size
is nowlinewidth
slab_size
is nowslab_linewidth
- in
geom_slab()
,geom_dots()
, andgeom_lineribbon()
,size
is nowlinewidth
- A new experimental mini domain-specific language for probability expressions in ggdist
stat
s: thePr_()
andp_()
functions can be used to generateafter_stat()
expressions in terms of ggdist computed variables; e.g.aes(thickness = !!Pr_(X <= x))
maps the CDF of the distribution onto thethickness
aesthetic;aes(thickness = !!p_(x))
maps the PDF onto thethickness
aesthetic. (#160) - Several function families in ggdist now use "currying" (automatic partial function application). These function families partially apply themselves until all non-optional arguments have been supplied:
point_interval()
,smooth_...
, anddensity_...
. Seehelp("automatic-partial-functions")
. - Performance improvements for
point_interval()
on grouped data frames. (#154)
Documentation:
- Uses of
stat()
have been replaced withafter_stat()
to be consistent with the deprecation ofstat()
in ggplot2 3.4.
Files
mjskay/ggdist-v3.2.1.zip
Files
(24.9 MB)
Name | Size | Download all |
---|---|---|
md5:8b86b9147a142125910785a98f15bc56
|
24.9 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/mjskay/ggdist/tree/v3.2.1 (URL)