Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d-morrison committed Jul 18, 2024
1 parent 6d69954 commit 7e15ae3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
14 changes: 12 additions & 2 deletions R/autoplot.curve_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@
#' @param ncol how many columns of subfigures to use in panel plot
#' @details
#' ## `rows_to_graph`
#' Note that if you directly specify `rows_to_graph` when calling this function, the row numbers are enumerated separately for each antigen isotype; in other words, for the purposes of this argument, row numbers start over at 1 for each antigen isotype. There is currently no way to specify different row numbers for different antigen isotypes; if you want to do that, you will could call [plot_curve_params_one_ab()] directly for each antigen isotype and combine the resulting panels yourself. Or you could subset `curve_params` manually, before passing it to this function, and set the `n_curves` argument to `Inf`.
#' If you directly specify `rows_to_graph` when calling this function,
#' the row numbers are enumerated separately for each antigen isotype;
#' in other words, for the purposes of this argument,
#' row numbers start over at 1 for each antigen isotype.
#' There is currently no way to specify different row numbers for different antigen isotypes;
#' if you want to do that,
#' you will could call [plot_curve_params_one_ab()] directly for each antigen isotype
#' and combine the resulting panels yourself.
#' Or you could subset `curve_params` manually,
#' before passing it to this function,
#' and set the `n_curves` argument to `Inf`.
#' @return a [ggplot2::ggplot()] object
#' @export
#' @examples
Expand All @@ -15,7 +25,7 @@
#'
#' curve = load_curve_params("https://osf.io/download/rtw5k/") %>%
#' filter(antigen_iso %in% c("HlyE_IgA", "HlyE_IgG")) %>%
#' slice(1:100, .by = antigen_iso) %>% # Reduce dataset for the purposes of this example
#' slice(1:100, .by = antigen_iso) %>% # Reduce dataset for the purposes of this example
#' autoplot()
#'
#' curve
Expand Down
4 changes: 2 additions & 2 deletions R/graph.decay.curves.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#'
#' load_curve_params("https://osf.io/download/rtw5k/") %>%
#' dplyr::filter(antigen_iso == "HlyE_IgG") %>%
#' serocalculator:::plot_curve_params_one_ab()
#' @noRd
#' serocalculator::plot_curve_params_one_ab()
#' @export
#' @keywords internal
plot_curve_params_one_ab = function(
object,
Expand Down
14 changes: 12 additions & 2 deletions man/autoplot.curve_params.Rd

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

0 comments on commit 7e15ae3

Please sign in to comment.