R:
surf <- surface(coordinates, "values", colors, turntable = TRUE, colorScale = "Viridis")
surf + surface(-coordinates, "values", colors, showLegend = FALSE, colorScale = "Viridis")
JavaScript:
var vis = new Baby.Plots("exampleCanvas", {backgroundColor: "#efefefff", turntable = true});
vis.addPlot(coordinates, "surface", "values", colors, {colorScale: "Viridis", showLegend: true});
vis.addPlot(coordinatesFlipped, "surface", "values", colors, {colorScale: "Viridis"});
vis.doRender();
Python:
bp = Babyplot(background_color="#efefefff", turntable=True)
bp.add_plot(coordinates, "surface", "values", colors, {"colorScale": "Viridis", "showLegend": True})
bp.add_plot(coodinatesFlipped, "surface", "values", colors, {"colorScale": "Viridis"})
bp
R:
pointCloud(coordinates, "categories", clusters, colorScale = "Dark2", turntable = T)
JavaScript:
var vis = new Baby.Plots("exampleCanvas", {backgroundColor: "#ffffddff", turntable: true});
vis.addPlot(coordinates, "pointCloud", "categories", clusters, {colorScale: "Dark2"});
vis.doRender();
Python:
bp = Babyplot(background_color="#ffffddff", turntable=True)
bp.add_plot(coordinates, "pointCloud", "categories", clusters, {"colorScale": "Dark2"}
bp
R:
heatMap(coordinates, "values", colors, colorScale = "OrRd", turntable = T, rotationRate = -0.01,
showLegend = F, showAxes = T, tickBreaks = c(1, 40, 1), axisLabels = c("", "Height", "Age"))
JavaScript:
var vis = new Baby.Plots("exampleCanvas");
vis.fromJSON(heatMapData); // import saved plot
vis.doRender();
Python:
bp = Babyplot(turntable=True, rotation_rate=-0.01)
bp.add_plot(coordinates, "heatMap", "values", colors, {"colorScale": "OrRd",
"showAxes": [True, True, True],
"tickBreaks": [1, 40, 1],
"axisLabels": ["", "Height", "Age"]})
bp
R:
imgStack("RGB.tif", threshold = 0.3, turntable = T)
JavaScript:
var vis = new Baby.Plots("exampleCanvas", {backgroundColor: "#000000ff", turntable: true});
vis.addImgStack(values, indices, attributes);
vis.doRender()
Python:
bp = Babyplot(background_color="000000ff", turntable=True)
bp.add_tiff("RGB.tif", threshold = 0.3)
bp
R:
plot <- shapeCloud(coordinate1s, "values", values1, shape = "box", colorScale = "Oranges", dpInfo = information1)
plot + shapeCloud(coordinates2, "values", values2, shape = "sphere", colorScale = "Purples", dpInfo = information2)
JavaScript:
var vis = new Baby.Plots("exampleCanvas", {backgroundColor: "#444444ff"});
vis.addPlot(coordinates1, "shapeCloud", "values", values1, {colorScale: "Oranges", shape: "box", dpInfo: information1});
vis.addPlot(coordinates2, "shapeCloud", "values", values2, {colorScale: "Purples", shape: "sphere", dpInfo: information2});
vis.doRender();
Python:
bp = Babyplot(background_color="#444444ff")
bp.add_plot(coordinates1, "shapeCloud", "values", values1, {"colorScale": "Oranges", "shape": "box", "dpInfo": information1})
bp.add_plot(coordinates2, "shapeCloud", "values", values2, {"colorScale": "Purples", "shape": "sphere", "dpInfo": information2})
bp