Area Chart

An area chart is really similar to a line chart, except that the area between the x axis and the line is filled in with color or shading. It represents the evolution of a numeric variable.



Color Themes


{
   "y" : {
      "data" : [
        [10,100,70,130,60]
      ],
      "smps" : ["S1","S2","S3","S4","S5"],
      "vars" : ["A"]
   }
}
{
   "colorScheme":"CanvasXpress",
   "graphOrientation":"vertical",
   "graphType":"Area",
   "lineType":"rect",
   "objectBorderColor":"false",
   "showLegend":"false",
   "showSampleNames":"true",
   "showTransition":"false",
   "smpLabelRotate":"90",
   "smpTitle":"time"
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-area4-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  colorScheme="CanvasXpress",
  graphOrientation="vertical",
  graphType="Area",
  lineType="rect",
  objectBorderColor=FALSE,
  showLegend=FALSE,
  showSampleNames=TRUE,
  showTransition=FALSE,
  smpLabelRotate=90,
  smpTitle="time"
)