-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathcontrol_annot.Rd
More file actions
74 lines (62 loc) · 2.63 KB
/
control_annot.Rd
File metadata and controls
74 lines (62 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/h_km.R
\name{control_annot}
\alias{control_annot}
\alias{control_surv_med_annot}
\alias{control_coxph_annot}
\title{Control functions for Kaplan-Meier plot annotation tables}
\usage{
control_surv_med_annot(
x = 0.8,
y = 0.85,
w = 0.32,
h = 0.16,
fill = TRUE,
digits = 4
)
control_coxph_annot(
x = 0.29,
y = 0.51,
w = 0.4,
h = 0.125,
fill = TRUE,
ref_lbls = FALSE
)
}
\arguments{
\item{x}{(\code{proportion})\cr x-coordinate for center of annotation table.}
\item{y}{(\code{proportion})\cr y-coordinate for center of annotation table.}
\item{w}{(\code{proportion})\cr relative width of the annotation table.}
\item{h}{(\code{proportion})\cr relative height of the annotation table.}
\item{fill}{(\code{flag} or \code{character})\cr whether the annotation table should have a background fill color.
Can also be a color code to use as the background fill color. If \code{TRUE}, color code defaults to \code{"#00000020"}.}
\item{digits}{(\code{integer(1)})\cr number of significant digits to use for rounding the
median survival time estimates and confidence interval values in the annotation table. Defaults to \code{4}.}
\item{ref_lbls}{(\code{flag})\cr whether the reference group should be explicitly printed in labels for the
annotation table. If \code{FALSE} (default), only comparison groups will be printed in the table labels.}
}
\value{
A list of components with the same names as the arguments.
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#stable}{\figure{lifecycle-stable.svg}{options: alt='[Stable]'}}}{\strong{[Stable]}}
Auxiliary functions for controlling arguments for formatting the annotation tables that can be added to plots
generated via \code{\link[=g_km]{g_km()}}.
}
\section{Functions}{
\itemize{
\item \code{control_surv_med_annot()}: Control function for formatting the median survival time annotation table. This annotation
table can be added in \code{\link[=g_km]{g_km()}} by setting \code{annot_surv_med=TRUE}, and can be configured using the
\code{control_surv_med_annot()} function by setting it as the \code{control_annot_surv_med} argument.
\item \code{control_coxph_annot()}: Control function for formatting the Cox-PH annotation table. This annotation table can be
added in \code{\link[=g_km]{g_km()}} by setting \code{annot_coxph=TRUE}, and can be configured using the \code{control_coxph_annot()} function
by setting it as the \code{control_annot_coxph} argument.
}}
\examples{
control_surv_med_annot()
control_surv_med_annot(digits = 2)
control_coxph_annot()
}
\seealso{
\code{\link[=g_km]{g_km()}}
}