8
8
* Items for next release go here
9
9
-->
10
10
11
+ * Added ` ppc_dens_overlay_grouped() ` and ` ppc_ecdf_overlay_grouped() ` for
12
+ plotting density and cumulative distributions of the posterior predictive
13
+ distribution (versus observed data) by group. (#212 )
14
+
15
+ * Fix bug in ` color_scheme_view() ` minimal theme (#213 ).
16
+
11
17
* On the y axis, ` ppc_loo_pit_qq(..., compare = "normal") ` now plots standard
12
18
normal quantiles calculated from the PIT values (instead of the standardized
13
19
PIT values). (#240 , #243 , @fweber144 )
14
20
15
21
* New plotting function ` ppc_km_overlay() ` for outcome variables that are
16
- right-censored. Empirical CCDF estimates of ` yrep ` are compared with the
22
+ right-censored. Empirical CCDF estimates of ` yrep ` are compared with the
17
23
Kaplan-Meier estimate of ` y ` . (#233 , #234 , @fweber144 )
18
24
19
- * CmdStanMCMC objects (from CmdStanR) can now be used with extractor
20
- functions ` nuts_params() ` , ` log_posterior() ` , ` rhat() ` , and
25
+ * CmdStanMCMC objects (from CmdStanR) can now be used with extractor
26
+ functions ` nuts_params() ` , ` log_posterior() ` , ` rhat() ` , and
21
27
` neff_ratio() ` . (#227 )
22
28
23
29
* Added missing ` facet_args ` argument to ` mcmc_rank_overlay() ` . (#221 , @hhau )
24
30
25
- * Size of points and interval lines can set in
26
- ` mcmc_intervals(..., outer_size, inner_size, point_size) ` . (#215 , #228 , #229 )
27
-
28
- * ` mcmc_areas() ` tries to use less blank vertical blank space. (#218 , #230 )
31
+ * Size of points and interval lines can set in
32
+ ` mcmc_intervals(..., outer_size, inner_size, point_size) ` . (#215 , #228 , #229 )
33
+
34
+ * ` mcmc_areas() ` tries to use less blank vertical blank space. (#218 , #230 )
29
35
30
36
* ` ppc_loo_pit_overlay() ` now uses a boundary correction for an improved kernel
31
37
density estimation. The new argument ` boundary_correction ` defaults to TRUE but
@@ -53,39 +59,39 @@ matrices also inheriting from "array" in R 4.0.
53
59
examples. (#161 , #183 , #188 )
54
60
55
61
* Two new plots have been added for inspecting the distribution of ranks.
56
- Rank histograms were introduced by the Stan team's [ new paper on
62
+ Rank histograms were introduced by the Stan team's [ new paper on
57
63
MCMC diagnostics] ( https://arxiv.org/abs/1903.08008 ) . (#178 , #179 )
58
64
59
65
` mcmc_rank_hist() ` : A traditional traceplot (` mcmc_trace() ` ) visualizes how
60
66
sampled values the MCMC chains mix over the course of sampling. A rank
61
67
histogram (` mcmc_rank_hist() ` ) visualizes how the * ranks* of values from the
62
68
chains mix together. An ideal plot would show the ranks mixing or overlapping
63
69
in a uniform distribution.
64
-
70
+
65
71
` mcmc_rank_overlay() ` : Instead of drawing each chain's histogram in a separate
66
72
panel, this plot draws the top edge of the chains' histograms in a single
67
73
panel.
68
-
74
+
69
75
* Added ` mcmc_trace_data() ` , which returns the data used for plotting the trace
70
76
plots and rank histograms. (Advances #97 )
71
77
72
78
* [ ColorBrewer] ( http://colorbrewer2.org ) palettes are now available as color
73
79
schemes via
74
80
[ ` color_scheme_set() ` ] ( https://mc-stan.org/bayesplot/reference/bayesplot-colors.html ) .
75
- For example, ` color_scheme_set("brewer-Spectral") ` will use the Spectral
81
+ For example, ` color_scheme_set("brewer-Spectral") ` will use the Spectral
76
82
palette. (#177 , #190 )
77
83
78
- * MCMC plots now also accept objects with an ` as.array ` method as
84
+ * MCMC plots now also accept objects with an ` as.array ` method as
79
85
input (e.g., stanfit objects). (#175 , #184 )
80
86
81
87
* [ ` mcmc_trace() ` ] ( https://mc-stan.org/bayesplot/reference/MCMC-traces.html )
82
88
gains an argument ` iter1 ` which can be used to label the traceplot starting
83
89
from the first iteration after warmup. (#14 , #155 , @mcol )
84
90
85
91
* [ ` mcmc_areas() ` ] ( https://mc-stan.org/bayesplot/reference/MCMC-intervals.html )
86
- gains an argument ` area_method ` which controls how to draw the density
87
- curves. The default ` "equal area" ` constrains the heights so that the curves
88
- have the same area. As a result, a narrow interval will appear as a spike
92
+ gains an argument ` area_method ` which controls how to draw the density
93
+ curves. The default ` "equal area" ` constrains the heights so that the curves
94
+ have the same area. As a result, a narrow interval will appear as a spike
89
95
of density, while a wide, uncertain interval is spread thin over the _ x_ axis.
90
96
Alternatively ` "equal height" ` will set the maximum height on each curve to
91
97
the same value. This works well when the intervals are about the same width.
@@ -112,12 +118,12 @@ matrices also inheriting from "array" in R 4.0.
112
118
* The examples in
113
119
[ ` ?ppc_loo_pit_overlay() ` ] ( https://mc-stan.org/bayesplot/reference/PPC-loo.html )
114
120
now work as expected. (#166 , #167 )
115
-
116
- * Added ` "viridisD" ` as an alternative name for ` "viridis" ` to the supported
121
+
122
+ * Added ` "viridisD" ` as an alternative name for ` "viridis" ` to the supported
117
123
colors.
118
124
119
- * Added ` "viridisE" ` (the [ cividis] ( https://github.com/marcosci/cividis )
120
- version of viridis) to the supported colors.
125
+ * Added ` "viridisE" ` (the [ cividis] ( https://github.com/marcosci/cividis )
126
+ version of viridis) to the supported colors.
121
127
122
128
* ` ppc_bars() ` and ` ppc_bars_grouped() ` now allow negative integers as input.
123
129
(#172 , @jeffpollock9 )
@@ -160,7 +166,7 @@ matrices also inheriting from "array" in R 4.0.
160
166
gains an argument ` discrete ` , which is ` FALSE ` by default, but can be used
161
167
to make the Geom more appropriate for discrete data. (#145 )
162
168
163
- * [ PPC intervals
169
+ * [ PPC intervals
164
170
plots] ( https://mc-stan.org/bayesplot/reference/PPC-intervals.html ) and [ LOO
165
171
predictive checks] ( https://mc-stan.org/bayesplot/reference/PPC-loo.html ) now
166
172
draw both an outer and an inner probability interval, which can be
0 commit comments