MDSplot: Draw an MDS plotly Object with specific points circled

Description Usage Arguments Value Examples

Description

Draw an MDS plotly Object with specific points circled

Draw an MDS plotly Object with specific points circled

Usage

1
2
3
MDSplot(object, distanceMethod = "euclidean", Class.train, resultIndicies, G)

MDSplot(object, distanceMethod = "euclidean", Class.train, resultIndicies, G)

Arguments

object

an Mclust object

distanceMethod

a method used to find distances between points. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski", with a default of "euclidean."

Class.train

a vector of cluster classifications associated with each data point

resultIndicies

a vector of indicies of points we would like to circle

G

the number of clusters

Class

a vector of cluster classifications associated with each data point

object

an Mclust object

distanceMethod

a method used to find distances between points. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski", with a default of "euclidean."

resultIndicies

a vector of indicies of points we would like to circle

G

the number of clusters

Value

a plotly object of MDS coordinates for your data with points circled

a plotly object of MDS coordinates for your data with points circled

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(banknote)

#create new dataset with only continuous data
bankdata <- banknote[,2:7]

#Mclust object
object <- Mclust(bankdata)

#Pull out classification of each row
Class <- object$classification

#rows you wish to identify in plot
resultIndicies <- c(125,50)

#create plot
MDSplot(object, Class = Class, resultIndicies = resultIndicies, G = 3)
place example here

lsheremet/imbc documentation built on May 20, 2019, 7:01 p.m.