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" : [
        [99,1,3,1,3,80,0.1],
        [30,0,0,0,0,0,0],
        [2,0.1,2.5,0.9,0.9,76,0.005],
        [60,0,0,0,0,0,0],
        [0,0,0,0,0.1,60,0.001],
        [2,0,0,0,0,0,0],
        [1,1,1,10,20,15,0]
      ],
      "smps" : [0,34,69,187,334,505,530],
      "vars" : ["C1","C2","C3","C4","C5","C6","C7"]
   }
}
{
   "backgroundType" : "windowSolidGradient",
   "colorSpectrum" : ["#ffe4c4","#ffb90f","#cd6600"],
   "colors" : ["#888888","#EF0000","#8FFF40","#FF6000","#50FFAF","#FFCF00","#0070FF"],
   "fishAxis" : ["0","34","69","187","334","505","530","650","750"],
   "fishParents" : ["0","1","1","1","3","4","0"],
   "fishSeparateIndependentClones" : "true",
   "fishShape" : "spline",
   "fishTimepoints" : ["0","34","69","187","334","505","530"],
   "gradientOrientation" : "horizontal",
   "graphType" : "Fish"
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-fish4-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("#888888", "#EF0000", "#8FFF40", "#FF6000", "#50FFAF", "#FFCF00", "#0070FF"),
  fishAxis=list(0, 34, 69, 187, 334, 505, 530, 650, 750),
  fishParents=list(0, 1, 1, 1, 3, 4, 0),
  fishSeparateIndependentClones=TRUE,
  fishShape="spline",
  fishTimepoints=list(0, 34, 69, 187, 334, 505, 530),
  gradientOrientation="horizontal",
  graphType="Fish"
)