[gv](https://graphviz.org/about/) file is a graph format in dot language.

treedata2gv(
  treedata,
  gvfile = "tree.gv",
  highlight = NULL,
  highcolor = "red",
  lightNodeKey = NULL,
  lightNodeColor = "red",
  is_cell = "auto_name",
  cell_prefix = "sc",
  cell_style = "filled",
  cell_shape = "box",
  cell_fill = "white",
  mut_style = "filled",
  mut_shape = "ellipse",
  mut_fill = "grey82"
)

Arguments

treedata

tree data from cf2treedata

gvfile

a file name to save result

highlight

which mutation or cell name to highlight

highcolor

highlight color

lightNodeKey

mutation or cell name to target a node

lightNodeColor

color of targeted node

is_cell

`auto_name` or `auto_position` or a vector list of bool

cell_prefix

if `auto_name` used in is_cell, a common prefix for cell name

cell_style

more in [here](https://graphviz.org/docs/attrs/style/)

cell_shape

more in [here](https://graphviz.org/doc/info/shapes.html)

cell_fill

more in [here](https://graphviz.org/docs/attrs/fillcolor/)

mut_style

more in [here](https://graphviz.org/docs/attrs/style/)

mut_shape

more in [here](https://graphviz.org/doc/info/shapes.html)

mut_fill

more in [here](https://graphviz.org/docs/attrs/fillcolor/)

Value

a file

Examples

CFmatrix_file = system.file("extdata", "ground_truth_tree.CFMatrix", package = "converTree")
t_all = cf2treedata(CFmatrix_file)
#> Tree data bone seems ok
treedata2gv(t_all,gvfile="tree.gv",highlight = c("M3","M42","M1"))