[R] problem with plotting clustered data with convex hull using ggfortify

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Sun Oct 24 23:19:48 CEST 2021

ggfortify is a (nonstandard) contributed package. Please note that per the
posting guide linked below:

"For questions about functions in standard packages distributed with R (see
the FAQ Add-on packages in R
<https://cran.r-project.org/doc/FAQ/R-FAQ.html#Add-on-packages-in-R>), ask
questions on R-help.
If the question relates to a *contributed package* , e.g., one downloaded
from CRAN, try contacting the package maintainer first. You can also use
find("functionname") and packageDescription("packagename") to find this
information. *Only* send such questions to R-help or R-devel if you get no
reply or need further assistance. This applies to both requests for help
and to bug reports."

So while you may get help here, the above may be a better course of action.
Also, if all you have done is copy and paste code, you should consider
going through the vignettes for the package. They seem fairly extensive
from my quick look and may well provide the answers you seek.

Bert Gunter

On Sun, Oct 24, 2021 at 1:57 PM Karl Schilling <karl.schilling using uni-bonn.de>

> Dear all:
> I have some data that I want to cluster and display as groups surrounded
> by convex hulls. Here, i use the iris data as an example:
> library(ggfortify)
> autoplot(fanny(iris[-5], 3), frame = TRUE)
> I used this code before, about a year ago, and then it resulted in data
> surrounded by convex hulls., just as may be seen in the description of
> ggfortify here:
> http://rstudio-pubs-static.s3.amazonaws.com/53162_cd16ee63c24747459ccd180f69f07810.html
> Presently, no hulls are drawn; instead some line is projected on each
> cluster.
> I found out that there is an addition to autoplot command, "frame.type =
> c("convex", "norm", "t"). Whereas ""norm" and "t"  give confidence
> ellipses as expected, "convex" results in a straight line as mentioned
> above.
> Any help would be appreciated.
> Best
> --
> Karl Schilling
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list