From 844f35c07162f9c8617e9070170d7aef9aec5aeb Mon Sep 17 00:00:00 2001 From: jgabry Date: Tue, 14 May 2019 19:10:00 -0400 Subject: [PATCH] add example --- R/bayesplot-colors.R | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/R/bayesplot-colors.R b/R/bayesplot-colors.R index aad002d2..0dde4c79 100644 --- a/R/bayesplot-colors.R +++ b/R/bayesplot-colors.R @@ -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",