Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed May 14, 2019
1 parent ac6f8ae commit 844f35c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions R/bayesplot-colors.R
Expand Up @@ -98,13 +98,22 @@
#' y <- example_y_data()
#' yrep <- example_yrep_draws()
#' ppc_stat(y, yrep, stat = "mean") + legend_none()
#' \donttest{
#'
#' ############################
#' ### Mixing color schemes ###
#' ############################
#' color_scheme_set("mix-teal-pink")
#' ppc_stat(y, yrep, stat = "sd") + legend_none()
#' mcmc_areas(x, regex_pars = "beta")
#' }
#'
#' ###########################
#' ### ColorBrewer schemes ###
#' ###########################
#' color_scheme_set("brewer-Spectral")
#' mcmc_trace(x, pars = "sigma")
#'
#' ###########################
#' ### custom color scheme ###
#' ### Custom color scheme ###
#' ###########################
#' orange_scheme <- c("#ffebcc", "#ffcc80",
#' "#ffad33", "#e68a00",
Expand Down

0 comments on commit 844f35c

Please sign in to comment.