|
a |
|
b/man/module_net.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/6.modules.R |
|
|
3 |
\name{module_net} |
|
|
4 |
\alias{module_net} |
|
|
5 |
\title{Generate a n-modules network} |
|
|
6 |
\usage{ |
|
|
7 |
module_net( |
|
|
8 |
module_number = 3, |
|
|
9 |
n_node_in_module = 30, |
|
|
10 |
intra_module_density = 0.3, |
|
|
11 |
inter_module_density = 0.01 |
|
|
12 |
) |
|
|
13 |
} |
|
|
14 |
\arguments{ |
|
|
15 |
\item{module_number}{number of modules} |
|
|
16 |
|
|
|
17 |
\item{n_node_in_module}{number of nodes in each modules} |
|
|
18 |
|
|
|
19 |
\item{intra_module_density}{intra_module_density, recommend bigger than 20*inter_module_density, default:0.3} |
|
|
20 |
|
|
|
21 |
\item{inter_module_density}{inter_module_density, default:0.01} |
|
|
22 |
} |
|
|
23 |
\value{ |
|
|
24 |
n-modules metanet |
|
|
25 |
} |
|
|
26 |
\description{ |
|
|
27 |
this is just a random generation method, the module number of result is not exactly the module_number, you can change the inter_module_density and intra_module_density to get the proper result. |
|
|
28 |
} |
|
|
29 |
\examples{ |
|
|
30 |
g1 <- module_net() |
|
|
31 |
get_n(g1) |
|
|
32 |
plot(g1, mark_module = TRUE) |
|
|
33 |
plot(g1, coors = g_layout(g1, zoom2 = 20)) |
|
|
34 |
plot(g1, coors = g_layout_polyarc(g1, group = "module")) |
|
|
35 |
plot(g1, coors = g_layout_polygon(g1, group = "module")) |
|
|
36 |
} |
|
|
37 |
\seealso{ |
|
|
38 |
Other module: |
|
|
39 |
\code{\link{filter_n_module}()}, |
|
|
40 |
\code{\link{get_community}()}, |
|
|
41 |
\code{\link{get_module_eigen}()}, |
|
|
42 |
\code{\link{get_module}()}, |
|
|
43 |
\code{\link{module_detect}()}, |
|
|
44 |
\code{\link{module_eigen}()}, |
|
|
45 |
\code{\link{summary_module}()}, |
|
|
46 |
\code{\link{to_module_net}()}, |
|
|
47 |
\code{\link{zp_analyse}()} |
|
|
48 |
} |
|
|
49 |
\concept{module} |