Returns a plot with the marginal distributions by cluster and feature. The plot shows histograms or boxplots and , as a ggplot object, can be modified further.
# S3 method for kmeans_ClustImpute
plot(
x,
type = "hist",
vline = "centroids",
hist_bins = 30,
color_bins = "#56B4E9",
color_vline = "#E69F00",
size_vline = 2,
...
)an object returned from ClustImpute
either "hist" to plot a histogram or "box" for a boxplot
for "hist" a vertical line is plotted showing either the centroid value or the mean of all data points grouped by cluster and feature
number of bins for histogram
color for the histogram bins
color for the vertical line
size of the vertical line
currently unused
Returns a ggplot object