|
a |
|
b/man/c_net_plot.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/3-3.plot.R |
|
|
3 |
\name{c_net_plot} |
|
|
4 |
\alias{c_net_plot} |
|
|
5 |
\title{Plot a metanet} |
|
|
6 |
\usage{ |
|
|
7 |
c_net_plot( |
|
|
8 |
go, |
|
|
9 |
coors = NULL, |
|
|
10 |
..., |
|
|
11 |
labels_num = NULL, |
|
|
12 |
vertex_size_range = NULL, |
|
|
13 |
edge_width_range = NULL, |
|
|
14 |
plot_module = FALSE, |
|
|
15 |
mark_module = FALSE, |
|
|
16 |
mark_color = NULL, |
|
|
17 |
mark_alpha = 0.3, |
|
|
18 |
module_label = FALSE, |
|
|
19 |
module_label_cex = 2, |
|
|
20 |
module_label_color = "black", |
|
|
21 |
module_label_just = c(0.5, 0.5), |
|
|
22 |
pie_value = NULL, |
|
|
23 |
pie_color = NULL, |
|
|
24 |
legend = TRUE, |
|
|
25 |
legend_number = FALSE, |
|
|
26 |
legend_cex = 1, |
|
|
27 |
legend_position = c(left_leg_x = -2, left_leg_y = 1, right_leg_x = 1.2, right_leg_y = |
|
|
28 |
1), |
|
|
29 |
group_legend_title = NULL, |
|
|
30 |
group_legend_order = NULL, |
|
|
31 |
color_legend = TRUE, |
|
|
32 |
color_legend_order = NULL, |
|
|
33 |
size_legend = FALSE, |
|
|
34 |
size_legend_title = "Node Size", |
|
|
35 |
edge_legend = TRUE, |
|
|
36 |
edge_legend_title = "Edge type", |
|
|
37 |
edge_legend_order = NULL, |
|
|
38 |
width_legend = FALSE, |
|
|
39 |
width_legend_title = "Edge width", |
|
|
40 |
lty_legend = FALSE, |
|
|
41 |
lty_legend_title = "Edge class", |
|
|
42 |
lty_legend_order = NULL, |
|
|
43 |
module_legend = FALSE, |
|
|
44 |
module_legend_title = "Module", |
|
|
45 |
module_legend_order = NULL, |
|
|
46 |
pie_legend = FALSE, |
|
|
47 |
pie_legend_title = "Pie part", |
|
|
48 |
pie_legend_order = NULL, |
|
|
49 |
params_list = NULL, |
|
|
50 |
rescale = FALSE, |
|
|
51 |
seed = 1234 |
|
|
52 |
) |
|
|
53 |
} |
|
|
54 |
\arguments{ |
|
|
55 |
\item{go}{an igraph or metanet object} |
|
|
56 |
|
|
|
57 |
\item{coors}{the coordinates you saved} |
|
|
58 |
|
|
|
59 |
\item{...}{additional parameters for \code{\link[igraph]{igraph.plotting}}} |
|
|
60 |
|
|
|
61 |
\item{labels_num}{show how many labels, >1 indicates number, <1 indicates fraction, "all" indicates all.} |
|
|
62 |
|
|
|
63 |
\item{vertex_size_range}{the vertex size range, e.g. c(1,10)} |
|
|
64 |
|
|
|
65 |
\item{edge_width_range}{the edge width range, e.g. c(1,10)} |
|
|
66 |
|
|
|
67 |
\item{plot_module}{logical, plot module?} |
|
|
68 |
|
|
|
69 |
\item{mark_module}{logical, mark the modules?} |
|
|
70 |
|
|
|
71 |
\item{mark_color}{mark color} |
|
|
72 |
|
|
|
73 |
\item{mark_alpha}{mark fill alpha, default 0.3} |
|
|
74 |
|
|
|
75 |
\item{module_label}{show module label?} |
|
|
76 |
|
|
|
77 |
\item{module_label_cex}{module label cex} |
|
|
78 |
|
|
|
79 |
\item{module_label_color}{module label color} |
|
|
80 |
|
|
|
81 |
\item{module_label_just}{module label just, default c(0.5,0.5)} |
|
|
82 |
|
|
|
83 |
\item{pie_value}{a dataframe using to plot pie (with rowname or a "name" column)} |
|
|
84 |
|
|
|
85 |
\item{pie_color}{color vector} |
|
|
86 |
|
|
|
87 |
\item{legend}{all legends} |
|
|
88 |
|
|
|
89 |
\item{legend_number}{legend with numbers} |
|
|
90 |
|
|
|
91 |
\item{legend_cex}{character expansion factor relative to current par("cex"), default: 1} |
|
|
92 |
|
|
|
93 |
\item{legend_position}{legend_position, default: c(left_leg_x=-1.9,left_leg_y=1,right_leg_x=1.2,right_leg_y=1)} |
|
|
94 |
|
|
|
95 |
\item{group_legend_title}{group_legend_title, length must same to the numbers of v_group} |
|
|
96 |
|
|
|
97 |
\item{group_legend_order}{group_legend_order vector} |
|
|
98 |
|
|
|
99 |
\item{color_legend}{logical} |
|
|
100 |
|
|
|
101 |
\item{color_legend_order}{color_legend_order vector} |
|
|
102 |
|
|
|
103 |
\item{size_legend}{logical} |
|
|
104 |
|
|
|
105 |
\item{size_legend_title}{size_legend_title} |
|
|
106 |
|
|
|
107 |
\item{edge_legend}{logical} |
|
|
108 |
|
|
|
109 |
\item{edge_legend_title}{edge_legend_title} |
|
|
110 |
|
|
|
111 |
\item{edge_legend_order}{edge_legend_order vector, e.g. c("positive","negative")} |
|
|
112 |
|
|
|
113 |
\item{width_legend}{logical} |
|
|
114 |
|
|
|
115 |
\item{width_legend_title}{width_legend_title} |
|
|
116 |
|
|
|
117 |
\item{lty_legend}{logical} |
|
|
118 |
|
|
|
119 |
\item{lty_legend_title}{lty_legend_title} |
|
|
120 |
|
|
|
121 |
\item{lty_legend_order}{lty_legend_order} |
|
|
122 |
|
|
|
123 |
\item{module_legend}{logical} |
|
|
124 |
|
|
|
125 |
\item{module_legend_title}{module_legend_title} |
|
|
126 |
|
|
|
127 |
\item{module_legend_order}{module_legend_order} |
|
|
128 |
|
|
|
129 |
\item{pie_legend}{logical} |
|
|
130 |
|
|
|
131 |
\item{pie_legend_title}{pie_legend_title} |
|
|
132 |
|
|
|
133 |
\item{pie_legend_order}{pie_legend_order} |
|
|
134 |
|
|
|
135 |
\item{params_list}{a list of parameters, e.g. list(edge_legend = TRUE, lty_legend = FALSE), when the parameter is duplicated, the format argument will be used rather than the argument in params_list.} |
|
|
136 |
|
|
|
137 |
\item{rescale}{Logical constant, whether to rescale the coordinates to the (-1,1).} |
|
|
138 |
|
|
|
139 |
\item{seed}{random seed, default:1234, make sure each plot is the same.} |
|
|
140 |
} |
|
|
141 |
\value{ |
|
|
142 |
a network plot |
|
|
143 |
} |
|
|
144 |
\description{ |
|
|
145 |
Plot a metanet |
|
|
146 |
} |
|
|
147 |
\examples{ |
|
|
148 |
data("c_net") |
|
|
149 |
c_net_plot(co_net) |
|
|
150 |
c_net_plot(co_net2) |
|
|
151 |
c_net_plot(multi1) |
|
|
152 |
} |
|
|
153 |
\seealso{ |
|
|
154 |
Other plot: |
|
|
155 |
\code{\link{as.ggig}()}, |
|
|
156 |
\code{\link{input_cytoscape}()}, |
|
|
157 |
\code{\link{input_gephi}()}, |
|
|
158 |
\code{\link{netD3plot}()}, |
|
|
159 |
\code{\link{olympic_rings_net}()}, |
|
|
160 |
\code{\link{plot.ggig}()}, |
|
|
161 |
\code{\link{twocol_edgelist}()}, |
|
|
162 |
\code{\link{venn_net}()} |
|
|
163 |
} |
|
|
164 |
\concept{plot} |