R/growthform_pie.R

Defines functions growthform_pie

growthform_pie <- function(GF, colours) {
	
      GF <- GF[, which(colSums(GF) > 0), drop=FALSE]
      
      try(pie(x=as.numeric(GF), labels=round(as.numeric(GF), digits=0), main=row.names(GF), col=colours[names(GF)]))

	try(legend("right", legend=names(GF), pch=20, col=colours[names(GF)], bty="n", cex=0.7, pt.cex=1))
	
}

Try the ausplotsR package in your browser

Any scripts or data that you put into this service are public.

ausplotsR documentation built on Nov. 17, 2023, 9:06 a.m.