Description Usage Arguments Value Examples
Draw an ellipse Plotly Object with specific points circled
1 | ellipsePlot(object, distanceMethod = "euclidean", Class, resultIndicies, G)
|
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 |
a plotly object of an elipse plot for your data with points circled
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.