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