Skip to content

Commit

Permalink
document labeller
Browse files Browse the repository at this point in the history
  • Loading branch information
B0ydT committed Nov 19, 2024
1 parent ba0e212 commit f805fab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/ggsurvplot_facet.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ NULL
#' the labels for the "sex" variable. For two grouping variables, you can use
#' for example panel.labs = list(sex = c("Male", "Female"), rx = c("Obs",
#' "Lev", "Lev2") ).
#'@param labeller A labeller function as described in
#'\code{\link[ggplot2:facet_wrap]{ggplot2:facet_wrap}}. This function overrides
#' short.panel.labs and panel.labs.
#'@param panel.labs.background a list to customize the background of panel
#' labels. Should contain the combination of the following elements: \itemize{
#' \item \code{color, linetype, size}: background line color, type and size
Expand Down Expand Up @@ -59,11 +62,11 @@ ggsurvplot_facet <- function(fit, data, facet.by,
nrow = NULL, ncol = NULL,
scales = "fixed",
short.panel.labs = FALSE, panel.labs = NULL,
labeller = NULL,
panel.labs.background = list(color = NULL, fill = NULL),
panel.labs.font = list(face = NULL, color = NULL, size = NULL, angle = NULL),
panel.labs.font.x = panel.labs.font,
panel.labs.font.y = panel.labs.font,
labeller = NULL,
...)
{

Expand Down
5 changes: 5 additions & 0 deletions man/ggsurvplot_facet.Rd

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

0 comments on commit f805fab

Please sign in to comment.