Open open3dgenome opened 6 years ago
Hmmm you bring up an interesting point. The only time df$fields
and df$fieldsAll
should differ is if there's null values in the root. I suppose I could change the collapsibleTree.data.tree
to use df$fieldsAll
and allow nulls, but I'm not totally convinced that's the best idea.
When you change df$fields
to df$fieldsAll
, I'm assuming the root node's color is wrong?
My apologies if this request just reflects my lack of familiarity with data.tree.
The data.tree objects that I usually generate are made by using as.Node() and these objects lack any information at the df$fields, rendering the
fill
argument useless on the methodcollapsibleTree/R/collapsibleTree.data.tree.R
. Being able to choose betweendf$fields
ordf$fieldsAll
can guarantee that different data.tree objects can be plotted.I confirm that by changing
df$fields
todf@fieldsAll
the nodes are properly colored.