data("Windarling")
coords = as.matrix(Windarling[,c("Easting","Northing")])
compo = Windarling[,c("Fe","Al2O3","SiO2", "Mn", "P")]
compo$Rest = 100-rowSums(compo)
compo = compositions::acomp(compo)
# in quantiles (default, ranking controls color and size)
pwlrmap(coords, compo)
# \donttest{
# in logratios (I=identity)
pwlrmap(coords, compo, scale=I)
# in ratios (i.e., apply exp)
pwlrmap(coords, compo, scale=exp)
# use only color, no change in symbol size
pwlrmap(coords, compo, cexrange=c(1,1))
# change all
pwlrmap(coords, compo, commonscale=TRUE, cexrange=c(1.2,1.2),
colscale=rev(rainbow(40, start=0, end=4/6)))
# }
Run the code above in your browser using DataLab