Draw a polygon representing a clone, annotated with cluster label and cellular fraction
draw.clone(x, y, wid=1, len=1, col='gray', label=NA, cell.frac=NA)
x coordinate
y coordinate
c("polygon", "triangle", "parabol")
width of the polygon (representing cellular fraction)
length of the polygon
fill color of the polygon
name of the clone
cellular fraction of the clone
position for cell.frac = c('top.left', 'top.right', 'top.mid', 'right.mid', 'right.top', 'right.bottom', 'side', 'top.out')
spacing between cell frac annotation when annotating on top of the plot
width of the line and arrow pointing to the top edge of the polygon from the cell frac annotation on top
list of variants to highlight inside the polygon
color of the border
vertical distance between the end point of clone bell curve, and its mid point (increase this will make the curve steeper, set this equal to zero will give no curve; use case: sometimes bell of subclone cannot fit parent clone bell, so decrease this will help fitting
scale the x length of the curve part of the bell plot by this to make sure in a wider pdf output file, the curve part won't be lengthen (wscale should be the ratio of the default width (currently hard-coded as 7) and the pdf page width