powered by
This function plots the cluster frequency.
plot_cluster_frequency(object, ...)# S3 method for medic plot_cluster_frequency(object, ...)# S3 method for summary.medic plot_cluster_frequency(object, ...)# S3 method for cluster_frequency plot_cluster_frequency(object, scale = "percent", with_population = FALSE, ...)
# S3 method for medic plot_cluster_frequency(object, ...)
# S3 method for summary.medic plot_cluster_frequency(object, ...)
# S3 method for cluster_frequency plot_cluster_frequency(object, scale = "percent", with_population = FALSE, ...)
A ggplot object.
The object containing the cluster frequency data.
Additional arguments passed to the plotting functions.
The scale of the y-axis. Must be either "percent" or "count".
Logical value indicating whether to include the population cluster.
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()
Run the code above in your browser using DataLab