View source: R/plot.aggregates.R
plot.aggregates | R Documentation |
Plot the aggregates by groups
plot.aggregates(disper, hull = FALSE, ellipse = TRUE)
disper |
The dispersion data |
hull |
whether plot hull shape |
ellipse |
whether plot ellipse by group |
f1 <- function(f) system.file("extdata", f,package="HierDpart")
region1=paste("region",rep(1,time=6))
region2=paste("region",rep(2,time=6))
region3=paste("region",rep(3,time=2))
region4=paste("region",rep(4,time=2))
level1=data.frame(matrix(data=0,nrow=16,ncol=1))
level1[1:6,1]=region1
level1[7:12,1]=region2
level1[13:14,1]=region3
level1[15:16,1]=region4
colnames(level1)=c("region")
ldis=Ldisper(f1("Island.gen"),ncode=3,group=level1$region)
plot(ldis$dispersion,hull=FALSE, ellipse=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.