Visualizes the cluster quality of different partitioning around medoids results.

plotAvgSilhouetteWidths(
  object,
  variable_set,
  k,
  method_pam = NULL,
  phase = NULL,
  clr = "steelblue",
  display_cols = TRUE,
  display_line = TRUE,
  display_points = TRUE
)

plotSilhouetteWidths(
  object,
  variable_set,
  k,
  method_pam = NULL,
  phase = NULL,
  clrp = NULL,
  ncol = NULL,
  nrow = NULL,
  verbose = NULL
)

Arguments

object

A valid cypro object.

variable_set

Character value. Denotes the variable set of interest. Use getVariableSetNames() to obtain all names of currently stored variable sets in your object.

k

Numeric vector. The k-values of interest.

method_pam

Character vector (or value see details for more.) Denotes the algorithm of interest. Valid input options are 'euclidean' and 'manhattan'.

phase

Character or numeric. If character, the ordinal value referring to the phase of interest (e.g. 'first', 'second' etc.). referring to the phase of interest or 'all'. If numeric, the number referring to the phase.

If set to NULL takes the phase denoted as default with adjustDefault().

Ignored if the experiment design contains only one phase.

display_cols

Logical value. If set to TRUE columns are used additionally to display the results.

display_line

Logical value. If set to TRUE a line is used additionally to display the results.

display_points

Logical value. If set to TRUE points are used additionally to display the results.

clrp

Character value. Specifies the color palette to be used to represent groups of discrete variables. Run validColorPalettes() to obtain valid input options.

ncol

Given to ggplot2::facet_wrap(). Affects the way the subplots are displayed.

nrow

Given to ggplot2::facet_wrap(). Affects the way the subplots are displayed.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Value

A ggplot.

Details

Specify method_pam as a character value.