[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"
)
tree data from cf2treedata
a file name to save result
which mutation or cell name to highlight
highlight color
mutation or cell name to target a node
color of targeted node
`auto_name` or `auto_position` or a vector list of bool
if `auto_name` used in is_cell, a common prefix for cell name
more in [here](https://graphviz.org/docs/attrs/style/)
more in [here](https://graphviz.org/doc/info/shapes.html)
more in [here](https://graphviz.org/docs/attrs/fillcolor/)
more in [here](https://graphviz.org/docs/attrs/style/)
more in [here](https://graphviz.org/doc/info/shapes.html)
more in [here](https://graphviz.org/docs/attrs/fillcolor/)
a file
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"))