Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Oct 22, 2024
1 parent f686110 commit 22b16c7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ importFrom(ggplot2,geom_smooth)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,guide_legend)
importFrom(ggplot2,guides)
importFrom(ggplot2,scale_y_continuous)
useDynLib(epikinetics, .registration = TRUE)
2 changes: 1 addition & 1 deletion R/epikinetics-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @importFrom data.table .NGRP
#' @importFrom data.table .SD
#' @importFrom data.table data.table
#' @importFrom ggplot2 aes facet_wrap geom_point geom_ribbon geom_line geom_smooth ggplot guides guide_legend
#' @importFrom ggplot2 aes facet_wrap geom_point geom_ribbon geom_line geom_smooth ggplot guides guide_legend scale_y_continuous
#' @useDynLib epikinetics, .registration = TRUE
## usethis namespace: end

Expand Down
14 changes: 7 additions & 7 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ plot_prior_predictive <- function(priors,
validate_required_cols(data, c("time_since_last_exp", "value"))
}
params <- data.table(
t0 = rnorm(n_draws, priors$mu_t0, priors$sigma_t0), # titre value at t0
tp = rnorm(n_draws, priors$mu_tp, priors$sigma_tp), # time of peak
ts = rnorm(n_draws, priors$mu_ts, priors$sigma_ts), # time of set point
m1 = rnorm(n_draws, priors$mu_m1, priors$sigma_m1), # gradient 1
m2 = rnorm(n_draws, priors$mu_m2, priors$sigma_m2), # gradient 2
m3 = rnorm(n_draws, priors$mu_m3, priors$sigma_m3) # gradient 3
t0 = stats::rnorm(n_draws, priors$mu_t0, priors$sigma_t0), # titre value at t0
tp = stats::rnorm(n_draws, priors$mu_tp, priors$sigma_tp), # time of peak
ts = stats::rnorm(n_draws, priors$mu_ts, priors$sigma_ts), # time of set point
m1 = stats::rnorm(n_draws, priors$mu_m1, priors$sigma_m1), # gradient 1
m2 = stats::rnorm(n_draws, priors$mu_m2, priors$sigma_m2), # gradient 2
m3 = stats::rnorm(n_draws, priors$mu_m3, priors$sigma_m3) # gradient 3
)

times <- data.table(t = 1:tmax)
Expand Down Expand Up @@ -66,7 +66,7 @@ plot_data <- function(data, covariates) {

#' Plot method for "biokinetics_population_trajectories" class
#'
#' @param x An object of class "biokinetics_population_trajectories". These are
#' @param trajectories An object of class "biokinetics_population_trajectories". These are
#' generated by running biokinetics$simulate_populate_trajectories().
#' @param data Optional data.table containing raw data as provided to the
#' biokinetics model.
Expand Down
6 changes: 3 additions & 3 deletions man/plot.biokinetics_population_trajectories.Rd

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

0 comments on commit 22b16c7

Please sign in to comment.