Scatter3D Chart

A scatterplot displays the relationship between 3 numeric variables. For each data point, the value of its first variable is represented on the X axis, the second on the Y axis, and the third on the Z axis.



Color Themes


{
   "axisTickScaleFontFactor" : 0.5,
   "axisTitleScaleFontFactor" : 0.5,
   "colorBy" : "Species",
   "graphType" : "Scatter3D",
   "theme" : "CanvasXpress",
   "title" : "Iris Data Set",
   "xAxis" : ["Sepal.Length"],
   "yAxis" : ["Sepal.Width"],
   "zAxis" : ["Petal.Length"]
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-irist-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
z=read.table("https://www.canvasxpress.org/data/cX-irist-var.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  varAnnot=z,
  axisTickScaleFontFactor=0.5,
  axisTitleScaleFontFactor=0.5,
  colorBy="Species",
  graphType="Scatter3D",
  theme="CanvasXpress",
  title="Iris Data Set",
  xAxis=list("Sepal.Length"),
  yAxis=list("Sepal.Width"),
  zAxis=list("Petal.Length")
)