Skip to content

Commit

Permalink
ggplot dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Clark committed Nov 8, 2023
1 parent c4d53ed commit e94d8f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Imports:
loo (>= 2.3.1),
rstantools (>= 2.1.1),
bayesplot (>= 1.5.0),
ggplot2 (>= 2.0.0),
matrixStats,
parallel,
pbapply,
Expand All @@ -50,7 +51,6 @@ Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Suggests:
cmdstanr (>= 0.4.0),
ggplot2 (>= 2.0.0),
knitr,
collapse,
rmarkdown,
Expand Down
10 changes: 10 additions & 0 deletions R/conditional_effects.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
#'
#' # Plot all main effects on the link scale
#' plot(conditional_effects(mod, type = 'link'), ask = FALSE)
#'
#' # Works the same for smooth terms
#' set.seed(0)
#' dat <- mgcv::gamSim(1, n = 200, scale = 2)
#' dat$time <- 1:NROW(dat)
#' mod <- mvgam(y ~ s(x0) + s(x1) + s(x2) + s(x3),
#' data = dat,
#' family = gaussian())
#' conditional_effects(mod)
#' conditional_effects(mod, conf_level = 0.5, type = 'link')
#' }
#' @export
conditional_effects.mvgam = function(x,
Expand Down
10 changes: 10 additions & 0 deletions man/conditional_effects.mvgam.Rd

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

0 comments on commit e94d8f2

Please sign in to comment.