Description Usage Arguments Value Examples

Draw an MDS plotly Object with specific points circled

Draw an MDS plotly Object with specific points circled

1 2 3 |

`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 |

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

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

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
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.