Skip to content

Commit

Permalink
fixed swimmerplot doc
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Jan 17, 2025
1 parent 842ef4a commit 6ad8347
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
10 changes: 6 additions & 4 deletions R/swimmerplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

#' Swimmer plot of all dates columns
#'
#' Join all tables from `.lookup$dataset` on `id`
#' Join all tables on `id` with only date columns to build a ggplot (or a
#' plotly if `plotly=TRUE`) showing all dates for each patients. This allows
#' outliers to be easily identified.
#'
#' @param id the patient identifier. Will be coerced as numeric if possible.
#' @param group a grouping variable, given as "dataset$column"
Expand All @@ -25,10 +27,10 @@
#' #tm = read_trialmaster("filename.zip", pw="xx")
#' tm = edc_example_plot()
#' load_list(tm)
#' p = edc_swimmerplot(.lookup, id_lim=c(5,45))
#' p2 = edc_swimmerplot(.lookup, origin="db0$date_naissance", time_unit="weeks",
#' p = edc_swimmerplot(id_lim=c(5,45))
#' p2 = edc_swimmerplot(origin="db0$date_naissance", time_unit="weeks",
#' exclude=c("DB1$DATE2", "db3$.*"))
#' p3 = edc_swimmerplot(.lookup, group="db0$group", aes_color="label")
#' p3 = edc_swimmerplot(group="db0$group", aes_color="label")
#' \dontrun{
#' #save the plotly plot as HTML to share it
#' save_plotly(p, "edc_swimmerplot.html")
Expand Down
24 changes: 13 additions & 11 deletions man/edc_swimmerplot.Rd

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

0 comments on commit 6ad8347

Please sign in to comment.