ellipsePlot: Draw an ellipse Plotly Object with specific points circled

Description Usage Arguments Value Examples

Description

Draw an ellipse Plotly Object with specific points circled

Usage

1
ellipsePlot(object, distanceMethod = "euclidean", Class, 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

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

Value

a plotly object of an elipse plot for your data with points circled

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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
ellipsePlot(object, Class = Class, resultIndicies = resultIndicies, G = 3)

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