metric_plot_helper.Rd
Helper Function for Plotting the Distribution of a Metric
metric_plot_helper(
cmps_metric,
metric,
scaled = FALSE,
SSratio = TRUE,
plot_density = TRUE,
...
)
a data frame containing values of the metric and the labels
string. Which metric to be plotted
logical value. If scaled = TRUE
, the values should be within the interval of [0, 1]
logical value. Whether to show the sum of squares ratio value
logical value. If plot_density = TRUE
, the function plots
group density on the y-axis; if plot_density = FALSE
, it plots the count of a certain bin.
other arguments for plotting: breaks
, binwidth
, and subtitle
a ggplot object