[7a0be0]: / man / c_net_plot.Rd

Download this file

165 lines (122 with data), 4.1 kB

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