diff --git a/R/plot_coefs.R b/R/plot_coefs.R index bd1dfaf..36295ee 100644 --- a/R/plot_coefs.R +++ b/R/plot_coefs.R @@ -9,7 +9,7 @@ #' @import ggplot2 #' @import bayesplot #' @param object An output from [walker()]. -#' @param level Level for intervals. Default is 0.05, leading to 90\% intervals. +#' @param level Level for intervals. Default is 0.05, leading to 90% intervals. #' @param alpha Transparency level for [ggplot2::geom_ribbon()]. #' @param transform Optional vectorized function for transforming the coefficients (for example `exp`). #' @param scales Should y-axis of the panels be `"fixed"` (default) or `"free"`? diff --git a/R/plot_fit.R b/R/plot_fit.R index 25881c8..5b612d4 100644 --- a/R/plot_fit.R +++ b/R/plot_fit.R @@ -1,7 +1,7 @@ #' Plot the fitted values and sample quantiles for a walker object #' #' @param object An output from [walker()] or [walker_glm()]. -#' @param level Level for intervals. Default is 0.05, leading to 90\% intervals. +#' @param level Level for intervals. Default is 0.05, leading to 90% intervals. #' @param alpha Transparency level for [ggplot2::geom_ribbon()]. #' @param ... Further arguments to [bayesplot::ppc_ribbon()]. #' @export @@ -18,4 +18,4 @@ plot_fit <- function(object, level = 0.05, alpha = 0.33, ...){ x = as.numeric(time(object$y))[noNA], ...) + theme(legend.position = "none") + scale_x_continuous(name = "time") -} +} \ No newline at end of file diff --git a/R/plot_predict.R b/R/plot_predict.R index 6a96a91..e6d6fdc 100644 --- a/R/plot_predict.R +++ b/R/plot_predict.R @@ -9,7 +9,7 @@ #' @param draw_obs Either `"response"`, `"mean"`, or `"none"`, #' where `"mean"` is response variable divided by number of trials or exposures #' in case of binomial/poisson models. -#' @param level Level for intervals. Default is 0.05, leading to 90\% intervals. +#' @param level Level for intervals. Default is 0.05, leading to 90% intervals. #' @param alpha Transparency level for [ggplot2::geom_ribbon()]. #' @export #' @examples diff --git a/man/plot_coefs.Rd b/man/plot_coefs.Rd index b69e8f6..79d7dd4 100644 --- a/man/plot_coefs.Rd +++ b/man/plot_coefs.Rd @@ -16,7 +16,7 @@ plot_coefs( \arguments{ \item{object}{An output from \code{\link[=walker]{walker()}}.} -\item{level}{Level for intervals. Default is 0.05, leading to 90\\% intervals.} +\item{level}{Level for intervals. Default is 0.05, leading to 90\% intervals.} \item{alpha}{Transparency level for \code{\link[ggplot2:geom_ribbon]{ggplot2::geom_ribbon()}}.} diff --git a/man/plot_fit.Rd b/man/plot_fit.Rd index f0527da..3d48d29 100644 --- a/man/plot_fit.Rd +++ b/man/plot_fit.Rd @@ -9,7 +9,7 @@ plot_fit(object, level = 0.05, alpha = 0.33, ...) \arguments{ \item{object}{An output from \code{\link[=walker]{walker()}} or \code{\link[=walker_glm]{walker_glm()}}.} -\item{level}{Level for intervals. Default is 0.05, leading to 90\\% intervals.} +\item{level}{Level for intervals. Default is 0.05, leading to 90\% intervals.} \item{alpha}{Transparency level for \code{\link[ggplot2:geom_ribbon]{ggplot2::geom_ribbon()}}.} diff --git a/man/plot_predict.Rd b/man/plot_predict.Rd index 6faf497..f2ac987 100644 --- a/man/plot_predict.Rd +++ b/man/plot_predict.Rd @@ -13,7 +13,7 @@ plot_predict(object, draw_obs = NULL, level = 0.05, alpha = 0.33) where \code{"mean"} is response variable divided by number of trials or exposures in case of binomial/poisson models.} -\item{level}{Level for intervals. Default is 0.05, leading to 90\\% intervals.} +\item{level}{Level for intervals. Default is 0.05, leading to 90\% intervals.} \item{alpha}{Transparency level for \code{\link[ggplot2:geom_ribbon]{ggplot2::geom_ribbon()}}.} }