plot_timing_atc_group {tame} | R Documentation |
Plot Timing ATC Group
Description
This function plots the timing ATC group.
Usage
plot_timing_atc_group(object, ...)
## S3 method for class 'medic'
plot_timing_atc_group(object, ...)
## S3 method for class 'summary.medic'
plot_timing_atc_group(object, ...)
## S3 method for class 'timing_atc_group'
plot_timing_atc_group(
object,
focus = "average",
with_population = FALSE,
max_lines = 50,
...
)
Arguments
object |
The object containing the timing ATC group data. |
... |
Additional arguments passed to the plotting functions. |
focus |
The focus of the plot. Must be either "average", "individual" or "both". |
with_population |
Logical value indicating whether to include the population cluster. |
max_lines |
The maximum number of lines to plot. |
Value
A ggplot object.
See Also
Examples
clust <- medic(
complications,
id = id,
atc = atc,
k = 3:5,
timing = first_trimester:third_trimester
)
clust |> plot_timing_atc_group()
clust |> timing_atc_group() |> plot_timing_atc_group()
clust |> summary() |> plot_timing_atc_group()
[Package tame version 0.2.0 Index]