plot.SH: Plotting model for Slope-Hunter clustering

View source: R/SH-utils.R

plot.SHR Documentation

Plotting model for Slope-Hunter clustering

Description

Plotting model for Slope-Hunter clustering

Usage

## S3 method for class 'SH'
plot(
  x,
  what = c("clusters", "classification", "uncertainty", "density"),
  xlab = NULL,
  ylab = NULL,
  addEllipses = TRUE,
  main = FALSE,
  ...
)

Arguments

x

Output from slopehunter.

what

A string specifying the type of graph requested. Available choices are: "clusters": showing clusters. The plot can display membership probabilities of each variable (e.g. SNP) to the target cluster (G1) by hovering over the points. "classification": A plot showing point assigned to each cluster (class). "uncertainty": A plot of classification uncertainty. "density": A plot of estimated density.

xlab

Optional label for the x-axis in case of "classification", "uncertainty", or "density" plots.

ylab

Optional label for the y-axis in case of "classification", "uncertainty", or "density" plots.

addEllipses

A logical indicating whether or not to add ellipses with axes corresponding to the within-cluster covariances in case of "classification" or "uncertainty" plots.

main

A logical or NULL indicating whether or not to add a title to the plot identifying the type of plot drawn in case of "classification", "uncertainty", or "density" plots.

...

Other graphics parameters.


Osmahmoud/SlopeHunter documentation built on Oct. 7, 2022, 4:38 p.m.