-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathautoplot.silhouette.Rd
48 lines (41 loc) · 957 Bytes
/
autoplot.silhouette.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fortify_cluster.R
\name{autoplot.silhouette}
\alias{autoplot.silhouette}
\title{Autoplot silhouette instances}
\usage{
\method{autoplot}{silhouette}(
object,
colour = "red",
linetype = "dashed",
size = 0.5,
bar.width = 1,
...
)
}
\arguments{
\item{object}{Silhouette instance}
\item{colour}{reference line color}
\item{linetype}{reference line type}
\item{size}{reference line size}
\item{bar.width}{bar width}
\item{...}{other arguments passed to methods}
}
\value{
ggplot
}
\description{
Autoplot silhouette instances
}
\examples{
\dontrun{
model = cluster::pam(iris[-5], 3L)
sil = cluster::silhouette(model)
autoplot(sil)
autoplot(cluster::silhouette(cluster::clara(iris[-5], 3)))
autoplot(cluster::silhouette(cluster::fanny(iris[-5], 3)))
model = stats::kmeans(iris[-5], 3)
sil = cluster::silhouette(model$cluster, stats::dist(iris[-5]))
autoplot(sil)
}
}