diff --git a/DESCRIPTION b/DESCRIPTION index 1861b7a9..a73fef77 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -58,7 +58,7 @@ Suggests: survival, testthat (>= 2.0.0), vdiffr (>= 1.0.2) -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 VignetteBuilder: knitr Encoding: UTF-8 Roxygen: list(markdown = TRUE) diff --git a/R/helpers-ppc.R b/R/helpers-ppc.R index 95ed2ed8..e268b315 100644 --- a/R/helpers-ppc.R +++ b/R/helpers-ppc.R @@ -101,7 +101,7 @@ validate_predictions <- function(predictions, n_obs = NULL) { #' Validate PIT #' #' Checks that `pit` is numeric, doesn't have any NAs, and is either a vector, -#' or a 1-D array with values in [0,1]. +#' or a 1-D array with values in `[0,1]`. #' #' @param pit The 'pit' object from the user. #' @return Either throws an error or returns a numeric vector. @@ -521,8 +521,8 @@ get_interpolation_values <- function(N, K, L, prob) { #' within the bounds until z1 and takes the value in x1 at z1. #' @param x1 Vector of scaled ECDF values at the left end of the interval, z1. #' @param x2 Vector of scaled ECDF values at the right end of the interval, z2. -#' @param z1 Left evaluation point in [0,1] -#' @param z2 Right evaluation point in [0,1] with z2 > z1. +#' @param z1 Left evaluation point in `[0,1]` +#' @param z2 Right evaluation point in `[0,1]` with z2 > z1. #' @param N Total number of values in the sample. #' @return A vector containing the probability to transitioning from the values #' in x1 to each of the values in x2 weighted by the probabilities in p_int. diff --git a/man/bayesplot_theme_get.Rd b/man/bayesplot_theme_get.Rd index 661e75bc..a3dbed16 100644 --- a/man/bayesplot_theme_get.Rd +++ b/man/bayesplot_theme_get.Rd @@ -17,7 +17,7 @@ bayesplot_theme_replace(...) } \arguments{ \item{new}{The new theme (list of theme elements) to use. This is analogous -to the \code{new} argument to \code{\link[ggplot2:theme_get]{ggplot2::theme_set()}}.} +to the \code{new} argument to \code{\link[ggplot2:get_theme]{ggplot2::theme_set()}}.} \item{...}{A named list of theme settings.} } @@ -29,7 +29,7 @@ the \strong{ggplot2} versions of these functions. } \description{ These functions are the \strong{bayesplot} equivalent to -\strong{ggplot2}'s \code{\link[ggplot2:theme_get]{ggplot2::theme_set()}} and friends. They set, get, and update +\strong{ggplot2}'s \code{\link[ggplot2:get_theme]{ggplot2::theme_set()}} and friends. They set, get, and update the active theme but only apply them to \code{bayesplots}. The current/active theme is automatically applied to every \code{bayesplot} you draw. @@ -39,7 +39,7 @@ Use \code{bayesplot_theme_get()} to get the current \strong{bayesplot} theme and } \details{ \code{bayesplot_theme_set()} and friends only apply to \code{bayesplots}. -However, \code{\link[ggplot2:theme_get]{ggplot2::theme_set()}} can also be used to change the +However, \code{\link[ggplot2:get_theme]{ggplot2::theme_set()}} can also be used to change the \strong{bayesplot} theme. Currently, setting a theme with \code{ggplot2::theme_set()} (other than the \strong{ggplot2} default \code{\link[ggplot2:ggtheme]{ggplot2::theme_grey()}}) will override the \strong{bayesplot} theme.