Skip to content

Commit

Permalink
devtools spell check
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
jgabry committed Sep 10, 2017
1 parent c797fa0 commit b5db3c1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions R/mcmc-overview.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#' }
#' \strong{Note}: typically the user should \emph{not} include warmup iterations
#' in the object passed to \pkg{bayesplot} plotting functions, although for
#' certain plots (e.g. traceplots) it can occasionally be useful to include the
#' certain plots (e.g. trace plots) it can occasionally be useful to include the
#' warmup iterations for diagnostic purposes.
#'
#' @section MCMC plotting functions:
Expand All @@ -43,14 +43,14 @@
#' \item{\strong{\link[=MCMC-intervals]{Uncertainty intervals}}}{
#' Uncertainty intervals computed from parameter draws.
#' }
#' \item{\strong{\link[=MCMC-traces]{Traceplots}}}{
#' \item{\strong{\link[=MCMC-traces]{Trace plots}}}{
#' Times series of parameter draws.
#' }
#' \item{\strong{\link[=MCMC-scatterplots]{Scatterplots}}}{
#' Scatterplots, heatmaps, and pairs plots of parameter draws.
#' }
#' \item{\strong{\link[=MCMC-combos]{Combinations}}}{
#' Combination plots (e.g. traceplot + histogram).
#' Combination plots (e.g. trace plot + histogram).
#' }
#' \item{\strong{\link[=MCMC-diagnostics]{General MCMC diagnostics}}}{
#' MCMC diagnostic plots including Rhat, effective sample size,
Expand Down
20 changes: 10 additions & 10 deletions R/mcmc-traces.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Traceplot (time series plot) of MCMC draws
#' Trace plot (time series plot) of MCMC draws
#'
#' Traceplot of MCMC draws. See the \strong{Plot Descriptions} section, below,
#' for details.
#' Trace plot (or traceplot) of MCMC draws. See the \strong{Plot Descriptions}
#' section, below, for details.
#'
#' @name MCMC-traces
#' @family MCMC
Expand Down Expand Up @@ -29,7 +29,7 @@
#' integrator}), an optional data frame providing NUTS diagnostic
#' information. The data frame should be the object returned by
#' \code{\link{nuts_params}} or one with the same structure. If \code{np} is
#' specified then tick marks are added to the bottom of the traceplot
#' specified then tick marks are added to the bottom of the trace plot
#' indicating within which iterations there was a divergence (if there were any).
#' See the end of the \strong{Examples} section, below.
#' @param np_style A call to the \code{trace_style_np} helper function to
Expand All @@ -42,8 +42,8 @@
#' @section Plot Descriptions:
#' \describe{
#' \item{\code{mcmc_trace}}{
#' Standard traceplots of MCMC draws. For models fit using \code{\link{NUTS}},
#' the \code{np} argument can be used to also show divergences on the traceplot.
#' Standard trace plots of MCMC draws. For models fit using \code{\link{NUTS}},
#' the \code{np} argument can be used to also show divergences on the trace plot.
#' }
#' \item{\code{mcmc_trace_highlight}}{
#' Traces are plotted using points rather than lines and the opacity of all
Expand All @@ -57,7 +57,7 @@
#' dim(x)
#' dimnames(x)
#'
#' # traceplots of the betas
#' # trace plots of the betas
#' color_scheme_set("viridis")
#' mcmc_trace(x, regex_pars = "beta")
#' \donttest{
Expand Down Expand Up @@ -100,14 +100,14 @@
#' color_scheme_set("brightblue")
#' mcmc_trace_highlight(x, pars = "sigma", highlight = 2, size = 2)
#'
#' # for models fit using HMC/NUTS divergences can be displayed in the traceplot
#' # for models fit using HMC/NUTS divergences can be displayed in the trace plot
#' library("rstanarm")
#' fit <- stan_glm(mpg ~ ., data = mtcars,
#' # next line to keep example fast and also ensure we get some divergences
#' prior = hs(), iter = 400, adapt_delta = 0.8)
#'
#' # extract draws using as.array (instead of as.matrix) to keep
#' # chains separate for traceplot
#' # chains separate for trace plot
#' posterior <- as.array(fit)
#'
#' # for stanfit and stanreg objects use nuts_params() to get the divergences
Expand Down Expand Up @@ -375,7 +375,7 @@ chain_colors <- function(n) {
}


# Add divergences to traceplot using geom_rug
# Add divergences to trace plot using geom_rug
#
# @param np User's 'np' argument, if specified.
# @param np_style User's 'np_style' argument, if specified.
Expand Down
6 changes: 3 additions & 3 deletions man/MCMC-overview.Rd

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

18 changes: 9 additions & 9 deletions man/MCMC-traces.Rd

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

0 comments on commit b5db3c1

Please sign in to comment.