plot_timing_atc_group | R Documentation |
This function plots the timing ATC group.
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,
...
)
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. |
A ggplot object.
timing_atc_group
plot_cluster_frequency
plot_medication_frequency
plot_comedication_count
plot_timing_trajectory
plot_summary
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.