Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed Jan 22, 2024
1 parent 97d9de9 commit a59315d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 28 deletions.
19 changes: 8 additions & 11 deletions R/tidyMS_aggregation.R
Original file line number Diff line number Diff line change
Expand Up @@ -637,23 +637,20 @@ estimate_intensity <- function(data, config, .func)
#' @export
#' @examples
#'
#' dd <- prolfqua_data('data_ionstar')$filtered()
#'
#' config <- old2new(dd$config)
#' data <- dd$data
#' istar <- sim_lfq_data_peptide_config()
#' config <- istar$config
#' analysis <- istar$data
#'
#' data <- prolfqua::transform_work_intensity(data, config, log2)
#' bbMed <- estimate_intensity(data, config, .func = medpolish_estimate_dfconfig)
#' tmpMed <- plot_estimate(data, config, bbMed$data, bbMed$config)
#' analysis <- prolfqua::transform_work_intensity(analysis, config, log2)
#' bbMed <- estimate_intensity(analysis, config, .func = medpolish_estimate_dfconfig)
#' tmpMed <- plot_estimate(analysis, config, bbMed$data, bbMed$config)
#' stopifnot("ggplot" %in% class(tmpMed$plots[[1]]))
#' stopifnot("ggplot" %in% class(tmpMed$plots[[2]]))
#' tmpMed$plots[[3]]
#'
#' bbRob <- estimate_intensity(data, config, .func = rlm_estimate_dfconfig)
#' tmpRob <- plot_estimate(data, config, bbRob$data, bbRob$config)
#' bbRob <- estimate_intensity(analysis, config, .func = rlm_estimate_dfconfig)
#' tmpRob <- plot_estimate(analysis, config, bbRob$data, bbRob$config)
#' stopifnot("ggplot" %in% class(tmpRob$plots[[1]]))
#' stopifnot("ggplot" %in% class(tmpRob$plots[[2]]))
#' tmpRob$plots[[3]]
#'
#'
plot_estimate <- function(data, config, data_aggr, config_reduced, show.legend= FALSE ){
Expand Down
6 changes: 3 additions & 3 deletions R/tidyMS_missigness.R
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,12 @@ get_imputed_contrasts <- function(pepIntensity,
#' istar <- sim_lfq_data_peptide_config()
#' config <- istar$config
#' analysis <- istar$data
#' xx <- complete_cases(data, config)
#' xx <- complete_cases(analysis, config)
#' pl <- missigness_histogram(xx, config)
#'
#' pl <- missigness_histogram(data, config, showempty=FALSE)
#' pl <- missigness_histogram(analysis, config, showempty=FALSE)
#' stopifnot("ggplot" %in% class(pl))
#' pl <- missigness_histogram(data, config, showempty=TRUE)
#' pl <- missigness_histogram(analysis, config, showempty=TRUE)
#' stopifnot("ggplot" %in% class(pl))
#'
missigness_histogram <- function(x,
Expand Down
6 changes: 3 additions & 3 deletions man/missigness_histogram.Rd

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

19 changes: 8 additions & 11 deletions man/plot_estimate.Rd

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

0 comments on commit a59315d

Please sign in to comment.