Fish Chart

Fish plots are designed to visualize tumor evolution. This visualizationwas inspired by the fishplot package for R by Christopher A. Miller, Joshua McMichael, Ha X. Dang, Christopher A. Maher, Li Ding, Timothy J. Ley, Elaine R. Mardis & Richard K. Wilson



Color Themes


{
   "y" : {
      "data" : [
        [100,100],
        [98,44],
        [46,1],
        [1,55]
      ],
      "smps" : ["Primary","Post-AI"],
      "vars" : ["S1","S2","S3","S4"]
   }
}
{
   "backgroundType" : "windowSolidGradient",
   "colorSpectrum" : ["#ffe4c4","#ffb90f","#cd6600"],
   "colors" : ["#1B9E77","#D95F02","#7570B3","#E7298A"],
   "fishAxis" : ["0","120"],
   "fishAxisLabels" : ["Primary","Post-AI"],
   "fishParents" : ["0","1","2","1"],
   "fishShape" : "polygon",
   "fishTimepoints" : ["0","120"],
   "gradientOrientation" : "horizontal",
   "graphType" : "Fish",
   "title" : "BRC32"
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-fish3-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  backgroundType="windowSolidGradient",
  colorSpectrum=list("#ffe4c4", "#ffb90f", "#cd6600"),
  colors=list("#1B9E77", "#D95F02", "#7570B3", "#E7298A"),
  fishAxis=list(0, 120),
  fishAxisLabels=list("Primary", "Post-AI"),
  fishParents=list(0, 1, 2, 1),
  fishShape="polygon",
  fishTimepoints=list(0, 120),
  gradientOrientation="horizontal",
  graphType="Fish",
  title="BRC32"
)