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