Multivariate statistical visualization (clustering, correlation, heatmaps, etc) in JavaScript.
live at: https://lorenasandoval88.github.io/statsjs
sdk = await import("https://lorenasandoval88.github.io/statsjs/sdk.js")
sdk.pca.loadUI()
sdk.pca.plot( {colors: ["#8C236A", "#4477AA"]} )
options can include the following (order is irrelevant) or be left empty:
{
divId: "as a string",
colors: [...list],
data: data in JSON format,
height: 100,
width: 400
}
define the text using the built in Iris data.
const csv = sdk. pca.data.iris.csv
sdk.textBox( {text: csv} )
options can include the following (order is irrelevant) or be left empty:
{
divId: "as a string",
text: data in csv or text format,
height: 100,
width: 400,
border: "2px solid",
color: "red"
}
Further documentation can be found on the wiki.