Skip to content

Commit

Permalink
reduce example time
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Dec 20, 2016
1 parent f791f30 commit 814bb3d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions R/bayesplot-colors.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
#' y <- example_y_data()
#' yrep <- example_yrep_draws()
#' ppc_stat(y, yrep, stat = "mean") + legend_none()
#'
#' \donttest{
#' color_scheme_set("mix-teal-pink")
#' ppc_stat(y, yrep, stat = "sd") + legend_none()
#' mcmc_areas(x, regex_pars = "beta")
#'
#' }
#' ###########################
#' ### custom color scheme ###
#' ###########################
Expand Down
3 changes: 2 additions & 1 deletion R/bayesplot-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@
#' y <- example_y_data()
#' yrep <- example_yrep_draws()
#' ppc_dens_overlay(y, yrep[1:50, ])
#'
#' \donttest{
#' color_scheme_set("pink")
#' ppc_stat(y, yrep, stat = "median") + grid_lines()
#' ppc_hist(y, yrep[1:8, ])
#' }
#'
NULL
3 changes: 2 additions & 1 deletion R/mcmc-diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@
#'
#' color_scheme_set("green")
#' mcmc_acf(x, pars = c("alpha", "beta[1]"))
#' \donttest{
#' color_scheme_set("pink")
#' (p <- mcmc_acf_bar(x, pars = c("alpha", "beta[1]")))
#'
#' # add tick marks on y axis and horiztonal dashed line at 0.5
#' p +
#' yaxis_ticks() +
#' hline_at(0.5, linetype = 2, size = 0.15, color = "gray")
#'
#' }
#'
#' # fake rhat values to use for demonstration
#' rhat <- c(runif(100, 1, 1.15))
Expand Down
3 changes: 2 additions & 1 deletion R/mcmc-distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
#' # histograms of some parameters
#' color_scheme_set("pink")
#' mcmc_hist(x, pars = c("alpha", "beta[2]"))
#' \donttest{
#' mcmc_hist(x, pars = "sigma", regex_pars = "beta")
#'
#' }
#' # example of using 'transformations' argument to plot log(sigma),
#' # and parsing facet labels (e.g. to get greek letters for parameters)
#' mcmc_hist(x, transformations = list(sigma = "log"),
Expand Down
3 changes: 2 additions & 1 deletion man/MCMC-diagnostics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/MCMC-distributions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/bayesplot-colors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/bayesplot-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 814bb3d

Please sign in to comment.