plot_comedication_count | R Documentation |
This function plots the comedication count.
plot_comedication_count(object, ...)
## S3 method for class 'medic'
plot_comedication_count(object, ...)
## S3 method for class 'summary.medic'
plot_comedication_count(object, ...)
## S3 method for class 'comedication_count'
plot_comedication_count(
object,
scale = "percent",
scope = "cluster",
focus = "people",
with_population = FALSE,
...
)
object |
The object containing the comedication count data. |
... |
Additional arguments passed to the plotting functions. |
scale |
The scale of the y-axis. Must be either "percent" or "count". |
scope |
The scope of the plot. Must be one of "cluster", "global" or "medication count". |
focus |
The focus of the plot. Must be either "people" or "medication". |
with_population |
Logical value indicating whether to include the population cluster. |
A ggplot object.
comedication_count
plot_cluster_frequency
plot_medication_frequency
plot_timing_trajectory
plot_timing_atc_group
plot_summary
clust <- medic(complications, id = id, atc = atc, k = 3)
clust |> plot_comedication_count()
clust |> comedication_count() |> plot_comedication_count()
clust |> summary() |> plot_comedication_count()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.