plot_cluster_frequency {tame} | R Documentation |
Plot Cluster Frequency
Description
This function plots the cluster frequency.
Usage
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, ...)
Arguments
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. |
Value
A ggplot object.
See Also
Examples
clust <- medic(complications, id = id, atc = atc, k = 3)
clust |> plot_cluster_frequency()
clust |> cluster_frequency() |> plot_cluster_frequency()
clust |> summary() |> plot_cluster_frequency()
[Package tame version 0.2.0 Index]