Clustree package example (prefix p)
Scatter2D graphs are a fundamental visualization tool used to display the relationship between two numerical variables. Each data point is represented as a dot on a two-dimensional plane, where the x-coordinate and y-coordinate correspond to the values of the two variables. This allows for quick identification of trends, clusters, and outliers in the data. Applications range from scientific data analysis to business intelligence, making them highly versatile. Creating effective Scatter2D graphs involves careful consideration of axis scaling, labeling, and color-coding. Highlighting specific data points or regions can improve understanding. Interactive Scatter2D plots further enhance exploration, allowing users to zoom, pan, and select individual data points for detailed examination. Choosing appropriate visualization tools greatly impacts the ability to draw meaningful insights from data.
<html>
<head>
<!-- Include the CanvasXpress library in your HTML file -->
<link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
<script src="https://www.canvasxpress.org/dist/canvasXpress.min.js"></script>
</head>
<body>
<!-- Create a canvas element for the chart with the desired dimensions -->
<div>
<canvas id="canvasId" width="600" height="600"></canvas>
</div>
<!-- Create a script to initialize the chart -->
<script>
// Use a data frame (2D-array) for the graph
var data =
// Create the configuration for the graph
var config = {
"graphType": "Scatter2D",
"scatterType": "clustree",
"clustreePrefix": "p",
"title": "Clustree (clustree package example data, prefix p)",
"legendPosition": "right"
}
// Event used to create graph (optional)
var events = false
// Call the CanvasXpress function to create the graph
var cX = new CanvasXpress("canvasId", data, config, events);
</script>
</body>
</html>
<html>
<head>
<!-- Include the CanvasXpress library in your HTML file -->
<link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
<script src="https://www.canvasxpress.org/dist/canvasXpress.min.js"></script>
</head>
<body>
<!-- Create a canvas element for the chart with the desired dimensions -->
<div>
<canvas id="canvasId" width="600" height="600"></canvas>
</div>
<!-- Create a script to initialize the chart -->
<script>
// Create the data for the graph
var data = {
"y": {
"vars": [
"Cell001",
"Cell002",
"Cell003",
"Cell004",
"Cell005",
"Cell006",
"Cell007",
"Cell008",
"Cell009",
"Cell010",
"Cell011",
"Cell012",
"Cell013",
"Cell014",
"Cell015",
"Cell016",
"Cell017",
"Cell018",
"Cell019",
"Cell020",
"Cell021",
"Cell022",
"Cell023",
"Cell024",
"Cell025",
"Cell026",
"Cell027",
"Cell028",
"Cell029",
"Cell030",
"Cell031",
"Cell032",
"Cell033",
"Cell034",
"Cell035",
"Cell036",
"Cell037",
"Cell038",
"Cell039",
"Cell040",
"Cell041",
"Cell042",
"Cell043",
"Cell044",
"Cell045",
"Cell046",
"Cell047",
"Cell048",
"Cell049",
"Cell050",
"Cell051",
"Cell052",
"Cell053",
"Cell054",
"Cell055",
"Cell056",
"Cell057",
"Cell058",
"Cell059",
"Cell060",
"Cell061",
"Cell062",
"Cell063",
"Cell064",
"Cell065",
"Cell066",
"Cell067",
"Cell068",
"Cell069",
"Cell070",
"Cell071",
"Cell072",
"Cell073",
"Cell074",
"Cell075",
"Cell076",
"Cell077",
"Cell078",
"Cell079",
"Cell080",
"Cell081",
"Cell082",
"Cell083",
"Cell084",
"Cell085",
"Cell086",
"Cell087",
"Cell088",
"Cell089",
"Cell090",
"Cell091",
"Cell092",
"Cell093",
"Cell094",
"Cell095",
"Cell096",
"Cell097",
"Cell098",
"Cell099",
"Cell100"
],
"smps": [
"p.0.4",
"p.0.5",
"p.0.6",
"p.0.7",
"p.0.8",
"p.0.9",
"p.1"
],
"data": [
[
"B",
"A",
"F",
"G",
"G",
"J",
"Z"
],
[
"D",
"E",
"A",
"H",
"A",
"D",
"I"
],
[
"C",
"F",
"G",
"G",
"C",
"H",
null
],
[
"A",
"C",
"B",
"B",
"C",
"E",
"L"
],
[
"A",
"E",
"A",
"E",
"H",
"H",
"B"
],
[
"A",
"E",
"B",
"B",
"B",
"E",
"T"
],
[
"E",
"D",
"E",
"B",
"B",
"A",
"A"
],
[
"C",
"B",
"F",
"H",
"D",
"B",
"X"
],
[
"B",
"B",
"A",
"D",
"A",
"I",
"W"
],
[
"A",
"A",
"E",
"D",
"E",
"G",
"D"
],
[
"A",
"D",
"E",
"A",
"H",
"A",
null
],
[
"D",
"B",
"A",
"B",
"E",
"F",
"T"
],
[
"C",
"B",
"D",
"H",
"I",
"E",
"Y"
],
[
"C",
"A",
"F",
"G",
"D",
"J",
"D"
],
[
"D",
"A",
"D",
"F",
"G",
"G",
"O"
],
[
"E",
"C",
"A",
"E",
"C",
"C",
"J"
],
[
"E",
"B",
"A",
"H",
"F",
"H",
"G"
],
[
"B",
"C",
"E",
"A",
"B",
"G",
null
],
[
"C",
"D",
"A",
"F",
"E",
"E",
"I"
],
[
"B",
"A",
"A",
"H",
"B",
"D",
"T"
],
[
"B",
"D",
"C",
"G",
"C",
"J",
"E"
],
[
"A",
"E",
"A",
"C",
"H",
"J",
"P"
],
[
"B",
"A",
"D",
"D",
"H",
"I",
"Y"
],
[
"A",
"B",
"A",
"H",
"H",
"D",
"O"
],
[
"A",
"F",
"C",
"D",
"B",
"I",
"T"
],
[
"A",
"A",
"B",
"D",
"E",
"D",
"N"
],
[
"D",
"E",
"E",
"G",
"A",
"C",
"C"
],
[
"C",
"E",
"F",
"D",
"I",
"A",
"E"
],
[
"E",
"E",
"D",
"B",
"H",
"H",
null
],
[
"A",
"F",
"B",
"B",
"E",
"B",
"Q"
],
[
"B",
"F",
"D",
"F",
"E",
"B",
null
],
[
"B",
"A",
"A",
"D",
"C",
"E",
"F"
],
[
"D",
"A",
"B",
"B",
"I",
"F",
"V"
],
[
"A",
"A",
"F",
"A",
"I",
"J",
"F"
],
[
"A",
"C",
"A",
"G",
"D",
"A",
"F"
],
[
"E",
"C",
"A",
"E",
"I",
"H",
"I"
],
[
"B",
"A",
"A",
"G",
"E",
"H",
"P"
],
[
"D",
"F",
"B",
"F",
"B",
"H",
"J"
],
[
"E",
"A",
"B",
"E",
"H",
"C",
"I"
],
[
"E",
"D",
"B",
"B",
"A",
"I",
"E"
],
[
"C",
"A",
"G",
"B",
"I",
"E",
"Z"
],
[
"A",
"C",
"C",
"C",
"H",
"B",
"G"
],
[
"D",
"B",
"A",
"A",
"E",
"A",
"S"
],
[
"E",
"E",
"C",
"B",
"H",
"H",
"R"
],
[
"B",
"E",
"E",
"G",
"H",
"E",
"Z"
],
[
"D",
"C",
"G",
"C",
"D",
"G",
"P"
],
[
"A",
"E",
"E",
"B",
"C",
"B",
"R"
],
[
"C",
"B",
"B",
"G",
"I",
"C",
"U"
],
[
"A",
"A",
"D",
"A",
"C",
"E",
"Y"
],
[
"C",
"A",
"C",
"G",
"I",
"I",
"R"
],
[
"D",
"A",
"C",
"E",
"I",
"J",
"J"
],
[
"C",
"A",
"F",
"C",
"C",
"B",
"F"
],
[
"C",
"D",
"B",
"G",
"H",
"J",
"U"
],
[
"E",
"C",
"F",
"E",
"H",
"C",
"F"
],
[
"A",
"B",
"E",
"B",
"G",
"H",
"B"
],
[
"B",
"F",
"E",
"H",
"I",
"C",
"R"
],
[
"C",
"D",
"F",
"D",
"G",
"E",
"M"
],
[
"E",
"F",
"C",
"H",
"H",
"D",
"C"
],
[
"E",
"C",
"G",
"B",
"H",
"I",
null
],
[
"C",
"A",
"C",
"G",
"C",
"F",
"W"
],
[
"E",
"B",
"A",
"C",
"C",
"J",
null
],
[
"B",
"E",
"D",
"E",
"E",
"B",
"C"
],
[
"E",
"E",
"B",
"A",
"E",
"H",
"B"
],
[
"E",
"C",
"D",
"A",
"D",
"G",
"H"
],
[
"C",
"A",
"A",
"E",
"E",
"C",
"X"
],
[
"B",
"B",
"E",
"B",
"B",
"B",
"Y"
],
[
"D",
"C",
"C",
"D",
"B",
"F",
"S"
],
[
"B",
"D",
"C",
"C",
"H",
"A",
"Q"
],
[
"B",
"F",
"E",
"B",
"F",
"B",
"M"
],
[
"B",
"A",
"E",
"C",
"A",
"A",
"R"
],
[
"D",
"D",
"E",
"H",
"H",
"I",
null
],
[
"A",
"C",
"A",
"D",
"G",
"E",
"H"
],
[
"D",
"D",
"C",
"H",
"I",
"F",
"H"
],
[
"D",
"C",
"F",
"G",
"E",
"H",
"K"
],
[
"C",
"F",
"E",
"F",
"A",
"A",
"K"
],
[
"D",
"C",
"D",
"B",
"H",
"G",
null
],
[
"C",
"D",
"B",
"G",
"F",
"A",
"D"
],
[
"B",
"C",
"A",
"C",
"I",
"C",
"A"
],
[
"B",
"E",
"A",
"D",
"A",
"F",
"K"
],
[
"A",
"B",
"A",
"A",
"A",
"D",
"O"
],
[
"E",
"D",
"F",
"D",
"H",
"J",
"C"
],
[
"D",
"F",
"B",
"B",
"A",
"D",
"N"
],
[
"B",
"E",
"E",
"E",
"B",
"F",
"V"
],
[
"D",
"C",
"D",
"A",
"C",
"E",
"I"
],
[
"B",
"D",
"B",
"F",
"C",
"G",
"E"
],
[
"D",
"A",
"G",
"B",
"E",
"I",
"W"
],
[
"A",
"A",
"F",
"B",
"B",
"D",
"S"
],
[
"A",
"A",
"E",
"C",
"E",
"I",
"O"
],
[
"A",
"E",
"A",
"D",
"B",
"B",
"Z"
],
[
"E",
"B",
"G",
"D",
"E",
"C",
"P"
],
[
"C",
"A",
"D",
"D",
"C",
"I",
"P"
],
[
"C",
"F",
"D",
"F",
"E",
"B",
"X"
],
[
"E",
"C",
"D",
"B",
"D",
"J",
"M"
],
[
"B",
"F",
"D",
"B",
"A",
"F",
"D"
],
[
"D",
"F",
"E",
"E",
"E",
"J",
null
],
[
"E",
"B",
"G",
"G",
"B",
"H",
"G"
],
[
"B",
"B",
"F",
"G",
"G",
"E",
"E"
],
[
"A",
"F",
"D",
"B",
"A",
"J",
"G"
],
[
"A",
"B",
"B",
"D",
"C",
"A",
null
],
[
"B",
"D",
"A",
"D",
"D",
"G",
"D"
]
]
}
}
// Create the configuration for the graph
var config = {
"graphType": "Scatter2D",
"scatterType": "clustree",
"clustreePrefix": "p",
"title": "Clustree (clustree package example data, prefix p)",
"legendPosition": "right"
}
// Event used to create graph (optional)
var events = false
// Call the CanvasXpress function to create the graph
var cX = new CanvasXpress("canvasId", data, config, events);
</script>
</body>
</html>
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/r/cX-scatter2d35-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
data=y,
clustreePrefix="p",
graphType="Scatter2D",
legendPosition="right",
scatterType="clustree",
title="Clustree (clustree package example data, prefix p)"
)
from canvasxpress.canvas import CanvasXpress
from canvasxpress.plot import show_in_browser
if __name__ == "__main__":
# Define the chart with its data and configuration
chart: CanvasXpress = CanvasXpress(
render_to = "scatter2d35",
data = {
"y": {
"vars": ["Cell001", "Cell002", "Cell003", "Cell004", "Cell005", "Cell006", "Cell007", "Cell008", "Cell009", "Cell010", "Cell011", "Cell012", "Cell013", "Cell014", "Cell015", "Cell016", "Cell017", "Cell018", "Cell019", "Cell020", "Cell021", "Cell022", "Cell023", "Cell024", "Cell025", "Cell026", "Cell027", "Cell028", "Cell029", "Cell030", "Cell031", "Cell032", "Cell033", "Cell034", "Cell035", "Cell036", "Cell037", "Cell038", "Cell039", "Cell040", "Cell041", "Cell042", "Cell043", "Cell044", "Cell045", "Cell046", "Cell047", "Cell048", "Cell049", "Cell050", "Cell051", "Cell052", "Cell053", "Cell054", "Cell055", "Cell056", "Cell057", "Cell058", "Cell059", "Cell060", "Cell061", "Cell062", "Cell063", "Cell064", "Cell065", "Cell066", "Cell067", "Cell068", "Cell069", "Cell070", "Cell071", "Cell072", "Cell073", "Cell074", "Cell075", "Cell076", "Cell077", "Cell078", "Cell079", "Cell080", "Cell081", "Cell082", "Cell083", "Cell084", "Cell085", "Cell086", "Cell087", "Cell088", "Cell089", "Cell090", "Cell091", "Cell092", "Cell093", "Cell094", "Cell095", "Cell096", "Cell097", "Cell098", "Cell099", "Cell100"],
"smps": ["p.0.4", "p.0.5", "p.0.6", "p.0.7", "p.0.8", "p.0.9", "p.1"],
"data": [
["B", "A", "F", "G", "G", "J", "Z"],
["D", "E", "A", "H", "A", "D", "I"],
["C", "F", "G", "G", "C", "H", None],
["A", "C", "B", "B", "C", "E", "L"],
["A", "E", "A", "E", "H", "H", "B"],
["A", "E", "B", "B", "B", "E", "T"],
["E", "D", "E", "B", "B", "A", "A"],
["C", "B", "F", "H", "D", "B", "X"],
["B", "B", "A", "D", "A", "I", "W"],
["A", "A", "E", "D", "E", "G", "D"],
["A", "D", "E", "A", "H", "A", None],
["D", "B", "A", "B", "E", "F", "T"],
["C", "B", "D", "H", "I", "E", "Y"],
["C", "A", "F", "G", "D", "J", "D"],
["D", "A", "D", "F", "G", "G", "O"],
["E", "C", "A", "E", "C", "C", "J"],
["E", "B", "A", "H", "F", "H", "G"],
["B", "C", "E", "A", "B", "G", None],
["C", "D", "A", "F", "E", "E", "I"],
["B", "A", "A", "H", "B", "D", "T"],
["B", "D", "C", "G", "C", "J", "E"],
["A", "E", "A", "C", "H", "J", "P"],
["B", "A", "D", "D", "H", "I", "Y"],
["A", "B", "A", "H", "H", "D", "O"],
["A", "F", "C", "D", "B", "I", "T"],
["A", "A", "B", "D", "E", "D", "N"],
["D", "E", "E", "G", "A", "C", "C"],
["C", "E", "F", "D", "I", "A", "E"],
["E", "E", "D", "B", "H", "H", None],
["A", "F", "B", "B", "E", "B", "Q"],
["B", "F", "D", "F", "E", "B", None],
["B", "A", "A", "D", "C", "E", "F"],
["D", "A", "B", "B", "I", "F", "V"],
["A", "A", "F", "A", "I", "J", "F"],
["A", "C", "A", "G", "D", "A", "F"],
["E", "C", "A", "E", "I", "H", "I"],
["B", "A", "A", "G", "E", "H", "P"],
["D", "F", "B", "F", "B", "H", "J"],
["E", "A", "B", "E", "H", "C", "I"],
["E", "D", "B", "B", "A", "I", "E"],
["C", "A", "G", "B", "I", "E", "Z"],
["A", "C", "C", "C", "H", "B", "G"],
["D", "B", "A", "A", "E", "A", "S"],
["E", "E", "C", "B", "H", "H", "R"],
["B", "E", "E", "G", "H", "E", "Z"],
["D", "C", "G", "C", "D", "G", "P"],
["A", "E", "E", "B", "C", "B", "R"],
["C", "B", "B", "G", "I", "C", "U"],
["A", "A", "D", "A", "C", "E", "Y"],
["C", "A", "C", "G", "I", "I", "R"],
["D", "A", "C", "E", "I", "J", "J"],
["C", "A", "F", "C", "C", "B", "F"],
["C", "D", "B", "G", "H", "J", "U"],
["E", "C", "F", "E", "H", "C", "F"],
["A", "B", "E", "B", "G", "H", "B"],
["B", "F", "E", "H", "I", "C", "R"],
["C", "D", "F", "D", "G", "E", "M"],
["E", "F", "C", "H", "H", "D", "C"],
["E", "C", "G", "B", "H", "I", None],
["C", "A", "C", "G", "C", "F", "W"],
["E", "B", "A", "C", "C", "J", None],
["B", "E", "D", "E", "E", "B", "C"],
["E", "E", "B", "A", "E", "H", "B"],
["E", "C", "D", "A", "D", "G", "H"],
["C", "A", "A", "E", "E", "C", "X"],
["B", "B", "E", "B", "B", "B", "Y"],
["D", "C", "C", "D", "B", "F", "S"],
["B", "D", "C", "C", "H", "A", "Q"],
["B", "F", "E", "B", "F", "B", "M"],
["B", "A", "E", "C", "A", "A", "R"],
["D", "D", "E", "H", "H", "I", None],
["A", "C", "A", "D", "G", "E", "H"],
["D", "D", "C", "H", "I", "F", "H"],
["D", "C", "F", "G", "E", "H", "K"],
["C", "F", "E", "F", "A", "A", "K"],
["D", "C", "D", "B", "H", "G", None],
["C", "D", "B", "G", "F", "A", "D"],
["B", "C", "A", "C", "I", "C", "A"],
["B", "E", "A", "D", "A", "F", "K"],
["A", "B", "A", "A", "A", "D", "O"],
["E", "D", "F", "D", "H", "J", "C"],
["D", "F", "B", "B", "A", "D", "N"],
["B", "E", "E", "E", "B", "F", "V"],
["D", "C", "D", "A", "C", "E", "I"],
["B", "D", "B", "F", "C", "G", "E"],
["D", "A", "G", "B", "E", "I", "W"],
["A", "A", "F", "B", "B", "D", "S"],
["A", "A", "E", "C", "E", "I", "O"],
["A", "E", "A", "D", "B", "B", "Z"],
["E", "B", "G", "D", "E", "C", "P"],
["C", "A", "D", "D", "C", "I", "P"],
["C", "F", "D", "F", "E", "B", "X"],
["E", "C", "D", "B", "D", "J", "M"],
["B", "F", "D", "B", "A", "F", "D"],
["D", "F", "E", "E", "E", "J", None],
["E", "B", "G", "G", "B", "H", "G"],
["B", "B", "F", "G", "G", "E", "E"],
["A", "F", "D", "B", "A", "J", "G"],
["A", "B", "B", "D", "C", "A", None],
["B", "D", "A", "D", "D", "G", "D"]
]
}
},
config = {
"graphType": "Scatter2D",
"scatterType": "clustree",
"clustreePrefix": "p",
"title": "Clustree (clustree package example data, prefix p)",
"legendPosition": "right"
},
width = 800,
height = 600
)
# Display the chart in its own Web page
show_in_browser(chart)
from canvasxpress.canvas import CanvasXpress
from canvasxpress.plot import graph
graph(
CanvasXpress(
render_to = "scatter2d35",
data = {
"y": {
"vars": ["Cell001", "Cell002", "Cell003", "Cell004", "Cell005", "Cell006", "Cell007", "Cell008", "Cell009", "Cell010", "Cell011", "Cell012", "Cell013", "Cell014", "Cell015", "Cell016", "Cell017", "Cell018", "Cell019", "Cell020", "Cell021", "Cell022", "Cell023", "Cell024", "Cell025", "Cell026", "Cell027", "Cell028", "Cell029", "Cell030", "Cell031", "Cell032", "Cell033", "Cell034", "Cell035", "Cell036", "Cell037", "Cell038", "Cell039", "Cell040", "Cell041", "Cell042", "Cell043", "Cell044", "Cell045", "Cell046", "Cell047", "Cell048", "Cell049", "Cell050", "Cell051", "Cell052", "Cell053", "Cell054", "Cell055", "Cell056", "Cell057", "Cell058", "Cell059", "Cell060", "Cell061", "Cell062", "Cell063", "Cell064", "Cell065", "Cell066", "Cell067", "Cell068", "Cell069", "Cell070", "Cell071", "Cell072", "Cell073", "Cell074", "Cell075", "Cell076", "Cell077", "Cell078", "Cell079", "Cell080", "Cell081", "Cell082", "Cell083", "Cell084", "Cell085", "Cell086", "Cell087", "Cell088", "Cell089", "Cell090", "Cell091", "Cell092", "Cell093", "Cell094", "Cell095", "Cell096", "Cell097", "Cell098", "Cell099", "Cell100"],
"smps": ["p.0.4", "p.0.5", "p.0.6", "p.0.7", "p.0.8", "p.0.9", "p.1"],
"data": [
["B", "A", "F", "G", "G", "J", "Z"],
["D", "E", "A", "H", "A", "D", "I"],
["C", "F", "G", "G", "C", "H", None],
["A", "C", "B", "B", "C", "E", "L"],
["A", "E", "A", "E", "H", "H", "B"],
["A", "E", "B", "B", "B", "E", "T"],
["E", "D", "E", "B", "B", "A", "A"],
["C", "B", "F", "H", "D", "B", "X"],
["B", "B", "A", "D", "A", "I", "W"],
["A", "A", "E", "D", "E", "G", "D"],
["A", "D", "E", "A", "H", "A", None],
["D", "B", "A", "B", "E", "F", "T"],
["C", "B", "D", "H", "I", "E", "Y"],
["C", "A", "F", "G", "D", "J", "D"],
["D", "A", "D", "F", "G", "G", "O"],
["E", "C", "A", "E", "C", "C", "J"],
["E", "B", "A", "H", "F", "H", "G"],
["B", "C", "E", "A", "B", "G", None],
["C", "D", "A", "F", "E", "E", "I"],
["B", "A", "A", "H", "B", "D", "T"],
["B", "D", "C", "G", "C", "J", "E"],
["A", "E", "A", "C", "H", "J", "P"],
["B", "A", "D", "D", "H", "I", "Y"],
["A", "B", "A", "H", "H", "D", "O"],
["A", "F", "C", "D", "B", "I", "T"],
["A", "A", "B", "D", "E", "D", "N"],
["D", "E", "E", "G", "A", "C", "C"],
["C", "E", "F", "D", "I", "A", "E"],
["E", "E", "D", "B", "H", "H", None],
["A", "F", "B", "B", "E", "B", "Q"],
["B", "F", "D", "F", "E", "B", None],
["B", "A", "A", "D", "C", "E", "F"],
["D", "A", "B", "B", "I", "F", "V"],
["A", "A", "F", "A", "I", "J", "F"],
["A", "C", "A", "G", "D", "A", "F"],
["E", "C", "A", "E", "I", "H", "I"],
["B", "A", "A", "G", "E", "H", "P"],
["D", "F", "B", "F", "B", "H", "J"],
["E", "A", "B", "E", "H", "C", "I"],
["E", "D", "B", "B", "A", "I", "E"],
["C", "A", "G", "B", "I", "E", "Z"],
["A", "C", "C", "C", "H", "B", "G"],
["D", "B", "A", "A", "E", "A", "S"],
["E", "E", "C", "B", "H", "H", "R"],
["B", "E", "E", "G", "H", "E", "Z"],
["D", "C", "G", "C", "D", "G", "P"],
["A", "E", "E", "B", "C", "B", "R"],
["C", "B", "B", "G", "I", "C", "U"],
["A", "A", "D", "A", "C", "E", "Y"],
["C", "A", "C", "G", "I", "I", "R"],
["D", "A", "C", "E", "I", "J", "J"],
["C", "A", "F", "C", "C", "B", "F"],
["C", "D", "B", "G", "H", "J", "U"],
["E", "C", "F", "E", "H", "C", "F"],
["A", "B", "E", "B", "G", "H", "B"],
["B", "F", "E", "H", "I", "C", "R"],
["C", "D", "F", "D", "G", "E", "M"],
["E", "F", "C", "H", "H", "D", "C"],
["E", "C", "G", "B", "H", "I", None],
["C", "A", "C", "G", "C", "F", "W"],
["E", "B", "A", "C", "C", "J", None],
["B", "E", "D", "E", "E", "B", "C"],
["E", "E", "B", "A", "E", "H", "B"],
["E", "C", "D", "A", "D", "G", "H"],
["C", "A", "A", "E", "E", "C", "X"],
["B", "B", "E", "B", "B", "B", "Y"],
["D", "C", "C", "D", "B", "F", "S"],
["B", "D", "C", "C", "H", "A", "Q"],
["B", "F", "E", "B", "F", "B", "M"],
["B", "A", "E", "C", "A", "A", "R"],
["D", "D", "E", "H", "H", "I", None],
["A", "C", "A", "D", "G", "E", "H"],
["D", "D", "C", "H", "I", "F", "H"],
["D", "C", "F", "G", "E", "H", "K"],
["C", "F", "E", "F", "A", "A", "K"],
["D", "C", "D", "B", "H", "G", None],
["C", "D", "B", "G", "F", "A", "D"],
["B", "C", "A", "C", "I", "C", "A"],
["B", "E", "A", "D", "A", "F", "K"],
["A", "B", "A", "A", "A", "D", "O"],
["E", "D", "F", "D", "H", "J", "C"],
["D", "F", "B", "B", "A", "D", "N"],
["B", "E", "E", "E", "B", "F", "V"],
["D", "C", "D", "A", "C", "E", "I"],
["B", "D", "B", "F", "C", "G", "E"],
["D", "A", "G", "B", "E", "I", "W"],
["A", "A", "F", "B", "B", "D", "S"],
["A", "A", "E", "C", "E", "I", "O"],
["A", "E", "A", "D", "B", "B", "Z"],
["E", "B", "G", "D", "E", "C", "P"],
["C", "A", "D", "D", "C", "I", "P"],
["C", "F", "D", "F", "E", "B", "X"],
["E", "C", "D", "B", "D", "J", "M"],
["B", "F", "D", "B", "A", "F", "D"],
["D", "F", "E", "E", "E", "J", None],
["E", "B", "G", "G", "B", "H", "G"],
["B", "B", "F", "G", "G", "E", "E"],
["A", "F", "D", "B", "A", "J", "G"],
["A", "B", "B", "D", "C", "A", None],
["B", "D", "A", "D", "D", "G", "D"]
]
}
},
config = {
"graphType": "Scatter2D",
"scatterType": "clustree",
"clustreePrefix": "p",
"title": "Clustree (clustree package example data, prefix p)",
"legendPosition": "right"
},
width = 800,
height = 600
)
)
using CanvasXpress
canvasxpress(Dict(
"y" => Dict(
"vars" => ["Cell001", "Cell002", "Cell003", "Cell004", "Cell005", "Cell006", "Cell007", "Cell008", "Cell009", "Cell010", "Cell011", "Cell012", "Cell013", "Cell014", "Cell015", "Cell016", "Cell017", "Cell018", "Cell019", "Cell020", "Cell021", "Cell022", "Cell023", "Cell024", "Cell025", "Cell026", "Cell027", "Cell028", "Cell029", "Cell030", "Cell031", "Cell032", "Cell033", "Cell034", "Cell035", "Cell036", "Cell037", "Cell038", "Cell039", "Cell040", "Cell041", "Cell042", "Cell043", "Cell044", "Cell045", "Cell046", "Cell047", "Cell048", "Cell049", "Cell050", "Cell051", "Cell052", "Cell053", "Cell054", "Cell055", "Cell056", "Cell057", "Cell058", "Cell059", "Cell060", "Cell061", "Cell062", "Cell063", "Cell064", "Cell065", "Cell066", "Cell067", "Cell068", "Cell069", "Cell070", "Cell071", "Cell072", "Cell073", "Cell074", "Cell075", "Cell076", "Cell077", "Cell078", "Cell079", "Cell080", "Cell081", "Cell082", "Cell083", "Cell084", "Cell085", "Cell086", "Cell087", "Cell088", "Cell089", "Cell090", "Cell091", "Cell092", "Cell093", "Cell094", "Cell095", "Cell096", "Cell097", "Cell098", "Cell099", "Cell100"],
"smps" => ["p.0.4", "p.0.5", "p.0.6", "p.0.7", "p.0.8", "p.0.9", "p.1"],
"data" => [
["B", "A", "F", "G", "G", "J", "Z"],
["D", "E", "A", "H", "A", "D", "I"],
["C", "F", "G", "G", "C", "H", nothing],
["A", "C", "B", "B", "C", "E", "L"],
["A", "E", "A", "E", "H", "H", "B"],
["A", "E", "B", "B", "B", "E", "T"],
["E", "D", "E", "B", "B", "A", "A"],
["C", "B", "F", "H", "D", "B", "X"],
["B", "B", "A", "D", "A", "I", "W"],
["A", "A", "E", "D", "E", "G", "D"],
["A", "D", "E", "A", "H", "A", nothing],
["D", "B", "A", "B", "E", "F", "T"],
["C", "B", "D", "H", "I", "E", "Y"],
["C", "A", "F", "G", "D", "J", "D"],
["D", "A", "D", "F", "G", "G", "O"],
["E", "C", "A", "E", "C", "C", "J"],
["E", "B", "A", "H", "F", "H", "G"],
["B", "C", "E", "A", "B", "G", nothing],
["C", "D", "A", "F", "E", "E", "I"],
["B", "A", "A", "H", "B", "D", "T"],
["B", "D", "C", "G", "C", "J", "E"],
["A", "E", "A", "C", "H", "J", "P"],
["B", "A", "D", "D", "H", "I", "Y"],
["A", "B", "A", "H", "H", "D", "O"],
["A", "F", "C", "D", "B", "I", "T"],
["A", "A", "B", "D", "E", "D", "N"],
["D", "E", "E", "G", "A", "C", "C"],
["C", "E", "F", "D", "I", "A", "E"],
["E", "E", "D", "B", "H", "H", nothing],
["A", "F", "B", "B", "E", "B", "Q"],
["B", "F", "D", "F", "E", "B", nothing],
["B", "A", "A", "D", "C", "E", "F"],
["D", "A", "B", "B", "I", "F", "V"],
["A", "A", "F", "A", "I", "J", "F"],
["A", "C", "A", "G", "D", "A", "F"],
["E", "C", "A", "E", "I", "H", "I"],
["B", "A", "A", "G", "E", "H", "P"],
["D", "F", "B", "F", "B", "H", "J"],
["E", "A", "B", "E", "H", "C", "I"],
["E", "D", "B", "B", "A", "I", "E"],
["C", "A", "G", "B", "I", "E", "Z"],
["A", "C", "C", "C", "H", "B", "G"],
["D", "B", "A", "A", "E", "A", "S"],
["E", "E", "C", "B", "H", "H", "R"],
["B", "E", "E", "G", "H", "E", "Z"],
["D", "C", "G", "C", "D", "G", "P"],
["A", "E", "E", "B", "C", "B", "R"],
["C", "B", "B", "G", "I", "C", "U"],
["A", "A", "D", "A", "C", "E", "Y"],
["C", "A", "C", "G", "I", "I", "R"],
["D", "A", "C", "E", "I", "J", "J"],
["C", "A", "F", "C", "C", "B", "F"],
["C", "D", "B", "G", "H", "J", "U"],
["E", "C", "F", "E", "H", "C", "F"],
["A", "B", "E", "B", "G", "H", "B"],
["B", "F", "E", "H", "I", "C", "R"],
["C", "D", "F", "D", "G", "E", "M"],
["E", "F", "C", "H", "H", "D", "C"],
["E", "C", "G", "B", "H", "I", nothing],
["C", "A", "C", "G", "C", "F", "W"],
["E", "B", "A", "C", "C", "J", nothing],
["B", "E", "D", "E", "E", "B", "C"],
["E", "E", "B", "A", "E", "H", "B"],
["E", "C", "D", "A", "D", "G", "H"],
["C", "A", "A", "E", "E", "C", "X"],
["B", "B", "E", "B", "B", "B", "Y"],
["D", "C", "C", "D", "B", "F", "S"],
["B", "D", "C", "C", "H", "A", "Q"],
["B", "F", "E", "B", "F", "B", "M"],
["B", "A", "E", "C", "A", "A", "R"],
["D", "D", "E", "H", "H", "I", nothing],
["A", "C", "A", "D", "G", "E", "H"],
["D", "D", "C", "H", "I", "F", "H"],
["D", "C", "F", "G", "E", "H", "K"],
["C", "F", "E", "F", "A", "A", "K"],
["D", "C", "D", "B", "H", "G", nothing],
["C", "D", "B", "G", "F", "A", "D"],
["B", "C", "A", "C", "I", "C", "A"],
["B", "E", "A", "D", "A", "F", "K"],
["A", "B", "A", "A", "A", "D", "O"],
["E", "D", "F", "D", "H", "J", "C"],
["D", "F", "B", "B", "A", "D", "N"],
["B", "E", "E", "E", "B", "F", "V"],
["D", "C", "D", "A", "C", "E", "I"],
["B", "D", "B", "F", "C", "G", "E"],
["D", "A", "G", "B", "E", "I", "W"],
["A", "A", "F", "B", "B", "D", "S"],
["A", "A", "E", "C", "E", "I", "O"],
["A", "E", "A", "D", "B", "B", "Z"],
["E", "B", "G", "D", "E", "C", "P"],
["C", "A", "D", "D", "C", "I", "P"],
["C", "F", "D", "F", "E", "B", "X"],
["E", "C", "D", "B", "D", "J", "M"],
["B", "F", "D", "B", "A", "F", "D"],
["D", "F", "E", "E", "E", "J", nothing],
["E", "B", "G", "G", "B", "H", "G"],
["B", "B", "F", "G", "G", "E", "E"],
["A", "F", "D", "B", "A", "J", "G"],
["A", "B", "B", "D", "C", "A", nothing],
["B", "D", "A", "D", "D", "G", "D"]
]
)
);
graphType = "Scatter2D",
scatterType = "clustree",
clustreePrefix = "p",
title = "Clustree (clustree package example data, prefix p)",
legendPosition = "right"
)






































