Skip to content

Commit

Permalink
rebuild jsdgam example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Clark committed Dec 19, 2024
1 parent 32b5803 commit bd20133
Show file tree
Hide file tree
Showing 75 changed files with 641 additions and 437 deletions.
14 changes: 7 additions & 7 deletions R/jsdgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
#' geom_histogram() +
#' facet_wrap(~ species, scales = 'free')
#'
#' ggplot(dat, aes(x = lat, y = lon, col = log(count + 1))) +
#' ggplot(dat, aes(x = lon, y = lat, col = log(count + 1))) +
#' geom_point(size = 2.25) +
#' facet_wrap(~ species, scales = 'free') +
#' scale_color_viridis_c() +
Expand All @@ -209,7 +209,7 @@
#'
#' # Each factor estimates a different nonlinear spatial process, using
#' # 'by = trend' as in other mvgam State-Space models
#' factor_formula = ~ gp(lat, lon, k = 6, by = trend) - 1,
#' factor_formula = ~ gp(lon, lat, k = 6, by = trend) - 1,
#' n_lv = 3,
#'
#' # The data and grouping variables
Expand All @@ -230,19 +230,19 @@
#'
#' # Each factor estimates a different nonlinear spatial process, using
#' # 'by = trend' as in other mvgam State-Space models
#' factor_formula = ~ gp(lat, lon, k = 6, by = trend) - 1,
#' factor_formula = ~ gp(lon, lat, k = 6, by = trend) - 1,
#' n_lv = 3,
#'
#' # Change default priors for fixed random effect variances and
#' # factor P marginal deviations to standard normal
#' priors = c(prior(std_normal(),
#' class = sigma_raw),
#' prior(std_normal(),
#' class = `alpha_gp_trend(lat, lon):trendtrend1`),
#' class = `alpha_gp_trend(lon, lat):trendtrend1`),
#' prior(std_normal(),
#' class = `alpha_gp_trend(lat, lon):trendtrend2`),
#' class = `alpha_gp_trend(lon, lat):trendtrend2`),
#' prior(std_normal(),
#' class = `alpha_gp_trend(lat, lon):trendtrend3`)),
#' class = `alpha_gp_trend(lon, lat):trendtrend3`)),
#'
#' # The data and the grouping variables
#' data = dat,
Expand Down Expand Up @@ -303,7 +303,7 @@
#'
#' # Plot the median log(count) predictions on a grid
#' newdata$log_count <- preds[,1]
#' ggplot(newdata, aes(x = lat, y = lon, col = log_count)) +
#' ggplot(newdata, aes(x = lon, y = lat, col = log_count)) +
#' geom_point(size = 1.5) +
#' facet_wrap(~ species, scales = 'free') +
#' scale_color_viridis_c() +
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/code.html

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

Binary file modified docs/reference/conditional_effects.mvgam-1.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/conditional_effects.mvgam-10.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/conditional_effects.mvgam-11.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/conditional_effects.mvgam-12.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/conditional_effects.mvgam-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/conditional_effects.mvgam-3.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/conditional_effects.mvgam-4.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/conditional_effects.mvgam-5.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/conditional_effects.mvgam-6.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/conditional_effects.mvgam-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/conditional_effects.mvgam-8.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/conditional_effects.mvgam-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 49 additions & 23 deletions docs/reference/conditional_effects.mvgam.html

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

Loading

0 comments on commit bd20133

Please sign in to comment.