Class exercise to create example plotly figure.
Just a quick example of viewing ArcGIS polygon data in a Leaflet map embedded within an R Markdown document.
Code to classify triads by bin and evaluate group membership. An alternative way to "cluster" data.
Some examples relating triad clusters to dyad and factor variables with ggplot2 box plots and bar plots, respectively
Some sample code to calculate and plot the means of clusters within XY scatterplots and ternary plots. Also sample code to assign cluster id as a new variable for use as a grouping variable in data visualizations.
Some sample code to define clusters in 3 part compositional data and plot these on a ternary plot with distinct colors.
I am teaching some graduate students new to programming, R language, and stats to visualize three-part compositional data they have collected. This is the first in a series of labs I've developed for that purpose.
Direct reproduction of the lake phosphorus model from: Reckhow & Simpson (1980) A procedure using modeling and error analysis for the prediction of lake phosphorus concentration from land use information. Canadian Journal of Fisheries and Aquatic Sciences 37(9):1439-1448. DOI: 10.1139/f80-184 My goal is to develop this model as an R Shiny example. This was the first stage: generating code that would reliably reproduce the published results.