sinhrks / ggfortify

Define fortify and autoplot functions to allow ggplot2 to handle some popular R packages.
Other
527 stars 65 forks source link

Silhouette plot #204

Closed damirpolat closed 4 years ago

damirpolat commented 4 years ago

I added a silhouette plot to the package similar to cluster::plot.silhouette but without the extra stats. The vertical line shows the average value and can be changed through the parameters. The plot works with cluster::silhouette object.

I also added unit tests and a small demo in vignette on how to use the new plot. I hope it's ok that I also added myself as a contributor.

Let me know if there are any questions on the new functionality.

Thanks, Damir

damirpolat commented 4 years ago

Could you also post an example plot?

Here's an example plot:

sil

terrytangyuan commented 4 years ago

Thanks for your contribution! If you see any other improvements or new features, feel free to submit pull requests or discuss via issues!