graph_eigenvalues.default: A helper for sub_dann

View source: R/graph_eigenvalues.R

graph_eigenvalues.defaultR Documentation

A helper for sub_dann

Description

A helper for sub_dann

Usage

## Default S3 method:
graph_eigenvalues(
  x,
  neighborhood_size = max(floor(nrow(x)/5), 50),
  weighted = FALSE,
  sphere = "mcd",
  ...
)

Arguments

x

A data frame.

neighborhood_size

The number of data points used to calculate between and within class covariance.

weighted

weighted argument to ncoord. See fpc::ncoord() for details.

sphere

One of "mcd", "mve", "classical", or "none" See fpc::ncoord() for details.

...

Additional parameters passed to methods.

Details

This function plots the eigenvalues found by fpc::ncoord(). The user should make a judgement call on how many eigenvalues are large and set sub_dann's numDim to that number.

Value

A ggplot2 graph.


dann documentation built on Sept. 23, 2023, 5:06 p.m.