[7a0be0]: / man / df2net_tree.Rd

Download this file

27 lines (25 with data), 568 Bytes

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