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