mapaclust | R Documentation |
This function generates an interactive map of zone showing the samples location and cluster classification using the Compositional Data (CoDA) approach for the data treatment and a clr trasnformation (Aitchison, 1982).
mapaclust( Dataclust, crsprj = 4326, Area, Geology, Faults, mapout = FALSE, shp_field, Filename )
Dataclust |
is a matrix that contains the hydrochemical composition of water samples and the assigned cluster using the |
crsprj |
is the coordinate reference system (CRS) of an object. Default value is EPSG 4326 for Coordenadas Geográficas WGS84. |
Area |
is a shape with the area of interest. |
Geology |
is a shape with the geology of the area of interest. |
Faults |
is a shape with the faults of the area of interest. |
mapout |
whether to render the map in the browser (TRUE) or the RStudio viewer (FALSE). |
shp_field |
is a character varible indicating the shape field name that contains the geological description to show in the map. |
Filename |
is a character varible to assign the file name to save the interactive map in HTML format. |
This function requires the matrix with the hydrochemical composition of water samples and cluster classification obtained using the waterclust
function.
Create a dynamic map showing the geographical distribution of water sample clusters.
create a dynamic map showing the geographical distribution of water sample clusters.
Adriana Piña appinaf@unal.edu.co
David Zamora dazamoraa@unal.edu.co
Aitchison, J. (1982). The Statistical Analysis of Compositional Data. Journal of the Royal Statistical Society. Series B (Methodological), 44(2), 139–177.
data(geological_units, faults, Area_data, Dataclust) Fig_map <- mapaclust(Dataclust, crsprj = 4326, Area = Area_data, Geology = geological_units, Faults =faults, mapout = TRUE, shp_field = "SimboloUC", Filename = NULL) Fig_map
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.