|
a |
|
b/man/df2net_tree.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/3-4.other_plot.R |
|
|
3 |
\name{df2net_tree} |
|
|
4 |
\alias{df2net_tree} |
|
|
5 |
\title{Transform a dataframe to a network edgelist.} |
|
|
6 |
\usage{ |
|
|
7 |
df2net_tree(test, fun = sum) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{test}{df} |
|
|
11 |
|
|
|
12 |
\item{fun}{default: sum} |
|
|
13 |
} |
|
|
14 |
\value{ |
|
|
15 |
metanet |
|
|
16 |
} |
|
|
17 |
\description{ |
|
|
18 |
Transform a dataframe to a network edgelist. |
|
|
19 |
} |
|
|
20 |
\examples{ |
|
|
21 |
data("otutab", package = "pcutils") |
|
|
22 |
cbind(taxonomy, num = rowSums(otutab))[1:20, ] -> test |
|
|
23 |
df2net_tree(test) -> ttt |
|
|
24 |
plot(ttt) |
|
|
25 |
if (requireNamespace("ggraph")) plot(ttt, coors = as_circle_tree()) |
|
|
26 |
} |