Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
291 views
in Technique[技术] by (71.8m points)

data visualization - How can I generate a simple dendrogram in R with 'edges' already known and the 'level' of the tree in a separate column?

I have a very wide horticultural dataset describing multiplication of lab cultures and their branching into greater numbers of cultures over time. So essentially it's a parent/child table containing columns 'to' and 'from' to show cennections; and a 'level' column which describes the respective order of the tree that I'm trying to make.

I can't figure out how to transform this into a readable format for R as.dendrogram. The actual number of columns is much greater than that shown. The 'to plate' and 'from plate' are the connections I need in the tree. The 'level' denotes the desired level in the tree, beginning at 1 (root node) and ideally a root 0 since there are multiple level 1's. Representation of the data format below:

media line Level To Plate From Plate
multi xxg 3 102 961
multi xxg 3 103 961
multi xxg 3 101 961
multi xxh 2 961 1021
multi xxh 1 1021 root node
question from:https://stackoverflow.com/questions/66056474/how-can-i-generate-a-simple-dendrogram-in-r-with-edges-already-known-and-the

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...