Skip to content

Commit 844f35c

Browse files
committed
add example
1 parent ac6f8ae commit 844f35c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

R/bayesplot-colors.R

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,22 @@
9898
#' y <- example_y_data()
9999
#' yrep <- example_yrep_draws()
100100
#' ppc_stat(y, yrep, stat = "mean") + legend_none()
101-
#' \donttest{
101+
#'
102+
#' ############################
103+
#' ### Mixing color schemes ###
104+
#' ############################
102105
#' color_scheme_set("mix-teal-pink")
103106
#' ppc_stat(y, yrep, stat = "sd") + legend_none()
104107
#' mcmc_areas(x, regex_pars = "beta")
105-
#' }
108+
#'
109+
#' ###########################
110+
#' ### ColorBrewer schemes ###
111+
#' ###########################
112+
#' color_scheme_set("brewer-Spectral")
113+
#' mcmc_trace(x, pars = "sigma")
114+
#'
106115
#' ###########################
107-
#' ### custom color scheme ###
116+
#' ### Custom color scheme ###
108117
#' ###########################
109118
#' orange_scheme <- c("#ffebcc", "#ffcc80",
110119
#' "#ffad33", "#e68a00",

0 commit comments

Comments
 (0)