Diff of /man/plot.ggig.Rd [000000] .. [13df9a]

Switch to unified view

a b/man/plot.ggig.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/3-4.other_plot.R
3
\name{plot.ggig}
4
\alias{plot.ggig}
5
\title{Plot a ggig}
6
\usage{
7
\method{plot}{ggig}(
8
  x,
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
  legend_number = FALSE,
23
  legend = TRUE,
24
  legend_cex = 1,
25
  legend_position = c(left_leg_x = -2, left_leg_y = 1, right_leg_x = 1.2, right_leg_y =
26
    1),
27
  group_legend_title = NULL,
28
  group_legend_order = NULL,
29
  color_legend = TRUE,
30
  color_legend_order = NULL,
31
  size_legend = FALSE,
32
  size_legend_title = "Node Size",
33
  edge_legend = TRUE,
34
  edge_legend_title = "Edge type",
35
  edge_legend_order = NULL,
36
  width_legend = FALSE,
37
  width_legend_title = "Edge width",
38
  lty_legend = FALSE,
39
  lty_legend_title = "Edge class",
40
  lty_legend_order = NULL,
41
  params_list = NULL,
42
  seed = 1234
43
)
44
}
45
\arguments{
46
\item{x}{ggig object}
47
48
\item{coors}{the coordinates you saved}
49
50
\item{...}{additional parameters for \code{\link[igraph]{igraph.plotting}}}
51
52
\item{labels_num}{show how many labels, >1 indicates number, <1 indicates fraction, "all" indicates all.}
53
54
\item{vertex_size_range}{the vertex size range, e.g. c(1,10)}
55
56
\item{edge_width_range}{the edge width range, e.g. c(1,10)}
57
58
\item{plot_module}{logical, plot module?}
59
60
\item{mark_module}{logical, mark the modules?}
61
62
\item{mark_color}{mark color}
63
64
\item{mark_alpha}{mark fill alpha, default 0.3}
65
66
\item{module_label}{show module label?}
67
68
\item{module_label_cex}{module label cex}
69
70
\item{module_label_color}{module label color}
71
72
\item{module_label_just}{module label just, default c(0.5,0.5)}
73
74
\item{legend_number}{legend with numbers}
75
76
\item{legend}{all legends}
77
78
\item{legend_cex}{character expansion factor relative to current par("cex"), default: 1}
79
80
\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)}
81
82
\item{group_legend_title}{group_legend_title, length must same to the numbers of v_group}
83
84
\item{group_legend_order}{group_legend_order vector}
85
86
\item{color_legend}{logical}
87
88
\item{color_legend_order}{color_legend_order vector}
89
90
\item{size_legend}{logical}
91
92
\item{size_legend_title}{size_legend_title}
93
94
\item{edge_legend}{logical}
95
96
\item{edge_legend_title}{edge_legend_title}
97
98
\item{edge_legend_order}{edge_legend_order vector, e.g. c("positive","negative")}
99
100
\item{width_legend}{logical}
101
102
\item{width_legend_title}{width_legend_title}
103
104
\item{lty_legend}{logical}
105
106
\item{lty_legend_title}{lty_legend_title}
107
108
\item{lty_legend_order}{lty_legend_order}
109
110
\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.}
111
112
\item{seed}{random seed, default:1234, make sure each plot is the same.}
113
}
114
\value{
115
ggplot
116
}
117
\description{
118
Plot a ggig
119
}
120
\seealso{
121
Other plot: 
122
\code{\link{as.ggig}()},
123
\code{\link{c_net_plot}()},
124
\code{\link{input_cytoscape}()},
125
\code{\link{input_gephi}()},
126
\code{\link{netD3plot}()},
127
\code{\link{olympic_rings_net}()},
128
\code{\link{twocol_edgelist}()},
129
\code{\link{venn_net}()}
130
}
131
\concept{plot}