|
a |
|
b/man/g_layout.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/3-1.layout.R |
|
|
3 |
\name{g_layout} |
|
|
4 |
\alias{g_layout} |
|
|
5 |
\title{Layout with group} |
|
|
6 |
\usage{ |
|
|
7 |
g_layout( |
|
|
8 |
go, |
|
|
9 |
group = "module", |
|
|
10 |
group_order = NULL, |
|
|
11 |
layout1 = in_circle(), |
|
|
12 |
zoom1 = 20, |
|
|
13 |
layout2 = in_circle(), |
|
|
14 |
zoom2 = 3, |
|
|
15 |
show_big_layout = FALSE, |
|
|
16 |
rescale = TRUE, |
|
|
17 |
... |
|
|
18 |
) |
|
|
19 |
} |
|
|
20 |
\arguments{ |
|
|
21 |
\item{go}{igraph or metanet object} |
|
|
22 |
|
|
|
23 |
\item{group}{group name (default: module)} |
|
|
24 |
|
|
|
25 |
\item{group_order}{group_order} |
|
|
26 |
|
|
|
27 |
\item{layout1}{layout1 method, one of |
|
|
28 |
(1) a dataframe or matrix: rowname is group, two columns are X and Y |
|
|
29 |
(2) function: layout method for \code{\link{c_net_layout}} default: in_circle()} |
|
|
30 |
|
|
|
31 |
\item{zoom1}{big network layout size} |
|
|
32 |
|
|
|
33 |
\item{layout2}{one of functions: layout method for \code{\link{c_net_layout}}, or a list of functions.} |
|
|
34 |
|
|
|
35 |
\item{zoom2}{average sub_network layout size, or numeric vector, or "auto"} |
|
|
36 |
|
|
|
37 |
\item{show_big_layout}{show the big layout to help you adjust.} |
|
|
38 |
|
|
|
39 |
\item{rescale}{logical, scale the X, Y to (-1,1)} |
|
|
40 |
|
|
|
41 |
\item{...}{add} |
|
|
42 |
} |
|
|
43 |
\value{ |
|
|
44 |
coors |
|
|
45 |
} |
|
|
46 |
\description{ |
|
|
47 |
Layout with group |
|
|
48 |
} |
|
|
49 |
\examples{ |
|
|
50 |
\donttest{ |
|
|
51 |
data("c_net") |
|
|
52 |
module_detect(co_net, method = "cluster_fast_greedy") -> co_net_modu |
|
|
53 |
g_layout(co_net_modu, group = "module", zoom1 = 30, zoom2 = "auto", layout2 = as_line()) -> oridata |
|
|
54 |
plot(co_net_modu, coors = oridata) |
|
|
55 |
} |
|
|
56 |
} |
|
|
57 |
\seealso{ |
|
|
58 |
Other g_layout: |
|
|
59 |
\code{\link{g_layout_nice}()}, |
|
|
60 |
\code{\link{g_layout_poly_sector}()}, |
|
|
61 |
\code{\link{g_layout_polygon}()} |
|
|
62 |
} |
|
|
63 |
\concept{g_layout} |