ggdist-deprecated | R Documentation |
Deprecated functions and arguments and their alternatives are listed below.
The stat_sample_...
and stat_dist_...
families of stats were merged in ggdist 3.1.
This means:
stat_dist_...
is deprecated. For any code using stat_dist_XXX()
, you should now
be able to use stat_XXX()
instead without additional modifications in almost all cases.
stat_sample_slabinterval()
is deprecated. You should be able to use
stat_slabinterval()
instead without additional modifications in almost all cases.
The old stat_dist_...
names are currently kept as aliases, but may be removed in the future.
Deprecated parameters for stat_slabinterval()
and family:
The .prob
argument, which is a long-deprecated alias for .width
, was
removed in ggdist 3.1.
The limits_function
argument: this was a parameter for determining the
function to compute limits of the slab in stat_slabinterval()
and its
derived stats. This function is really an internal function only needed by
subclasses of the base class, yet added a lot of noise to the documentation,
so it was replaced with AbstractStatSlabInterval$compute_limits()
.
The limits_args
argument: extra stat parameters are now passed through to
the ...
arguments to AbstractStatSlabInterval$compute_limits()
; use
these instead.
The slab_function
argument: this was a parameter for determining the
function to compute slabs in stat_slabinterval()
and its
derived stats. This function is really an internal function only needed by
subclasses of the base class, yet added a lot of noise to the documentation,
so it was replaced with AbstractStatSlabInterval$compute_slab()
.
The slab_args
argument: extra stat parameters are now passed through to
the ...
arguments to AbstractStatSlabInterval$compute_slab()
; use
these instead.
The slab_type
argument: instead of setting the slab type, either adjust
the density
argument (e.g. use density = "histogram"
to replace
slab_type = "histogram"
) or use the pdf
or cdf
computed variables
mapped onto an appropriate aesthetic (e.g. use aes(thickness = after_stat(cdf))
to create a CDF).
The interval_function
and fun.data
arguments: these were parameters for determining the
function to compute intervals in stat_slabinterval()
and its
derived stats. This function is really an internal function only needed by
subclasses of the base class, yet added a lot of noise to the documentation,
so it was replaced with AbstractStatSlabInterval$compute_interval()
.
The interval_args
and fun.args
arguments: to pass extra arguments to
a point_interval
replace the value of the point_interval
argument with
a simple wrapper; e.g. stat_halfeye(point_interval = \(...) point_interval(..., extra_arg = XXX))
Deprecated parameters for geom_slabinterval()
and family:
The size_domain
and size_range
arguments, which are long-deprecated aliases
for interval_size_domain
and interval_size_range
, were removed in ggdist 3.1.
Matthew Kay
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.