plot.kmeans_ClustImpute {ClustImpute}R Documentation

Plot showing marginal distribution by cluster assignment

Description

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.

Usage

## S3 method for class 'kmeans_ClustImpute'
plot(
  x,
  type = "hist",
  vline = "centroids",
  hist_bins = 30,
  color_bins = "#56B4E9",
  color_vline = "#E69F00",
  size_vline = 2,
  ...
)

Arguments

x

an object returned from ClustImpute

type

either "hist" to plot a histogram or "box" for a boxplot

vline

for "hist" a vertical line is plotted showing either the centroid value or the mean of all data points grouped by cluster and feature

hist_bins

number of bins for histogram

color_bins

color for the histogram bins

color_vline

color for the vertical line

size_vline

size of the vertical line

...

currently unused

Value

Returns a ggplot object


[Package ClustImpute version 0.2.4 Index]