Skip to content

Commit

Permalink
change jsdgam example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Clark committed Nov 1, 2024
1 parent fd8b1cf commit fcbb3eb
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 26 deletions.
8 changes: 1 addition & 7 deletions R/jsdgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
#' ggplot(dat, aes(x = lat, y = lon, col = log(count + 1))) +
#' geom_point(size = 2.25) +
#' facet_wrap(~ species, scales = 'free') +
#' viridis::scale_color_viridis() +
#' theme_classic()
#'
#' # Inspect default priors for the underlying model
Expand Down Expand Up @@ -226,11 +225,7 @@
#' cormat <- cov2cor(tcrossprod(med_loadings))
#' rownames(cormat) <- colnames(cormat) <- levels(dat$species)
#'
#' # Plot it using corrplot (if installed)
#' if(requireNamespace('corrplot', quietly = TRUE)){
#' corrplot::corrplot(cormat, type = 'lower', tl.col = 'black',
#' tl.srt = 45)
#' }
#' round(cormat, 2)
#'
#' # Posterior predictive checks and ELPD-LOO can ascertain model fit
#' pp_check(mod, type = "ecdf_overlay_grouped",
Expand All @@ -255,7 +250,6 @@
#' ggplot(newdata, aes(x = lat, y = lon, col = log_count)) +
#' geom_point(size = 1.5) +
#' facet_wrap(~ species, scales = 'free') +
#' viridis::scale_color_viridis() +
#' theme_classic()
#'}
#'@export
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/index.html

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

Binary file modified docs/reference/jsdgam-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/jsdgam-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/jsdgam-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 27 additions & 11 deletions docs/reference/jsdgam.html

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

8 changes: 1 addition & 7 deletions man/jsdgam.Rd

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

0 comments on commit fcbb3eb

Please sign in to comment.