diff --git a/DESCRIPTION b/DESCRIPTION index ac2970e3..bda49a33 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -63,5 +63,5 @@ biocViews: ImmunoOncology, MultipleComparison, Classification, Regression -RoxygenNote: 7.1.1.9000 +RoxygenNote: 7.1.2 Encoding: UTF-8 diff --git a/R/network.R b/R/network.R index 25fe5a5c..db44128c 100644 --- a/R/network.R +++ b/R/network.R @@ -136,6 +136,9 @@ #' @param layout.fun a function. It specifies how the vertices will be placed #' on the graph. See help(layout) in the igraph package. Defaults to #' layout.fruchterman.reingold. +#' @param plot.graph logical. If \code{TRUE} (default), plotting window will be +#' filled with network. If \code{FALSE}, then no graph will be plotted, though +#' the return value of the function is the exact same. #' @return \code{network} return a list containing the following components: #' \item{M}{the correlation matrix used by \code{network}.} \item{gR}{a #' \code{graph} object to save the graph for cytoscape use (requires to load diff --git a/man/network.Rd b/man/network.Rd index bce9c22e..9d4b1a7d 100644 --- a/man/network.Rd +++ b/man/network.Rd @@ -33,7 +33,8 @@ network( interactive = FALSE, layout.fun = NULL, save = NULL, - name.save = NULL + name.save = NULL, + plot.graph = TRUE ) } \arguments{ @@ -110,6 +111,10 @@ layout.fruchterman.reingold.} \code{'jpeg'}, \code{'tiff'}, \code{'png'} or \code{'pdf'}.} \item{name.save}{character string giving the name of the saved file.} + +\item{plot.graph}{logical. If \code{TRUE} (default), plotting window will be +filled with network. If \code{FALSE}, then no graph will be plotted, though +the return value of the function is the exact same.} } \value{ \code{network} return a list containing the following components: