plot.diffnet | R Documentation |
Plot method for objects of class diffnet
## S3 method for class 'diffnet'
plot(
x,
adjusted = TRUE,
layout = NULL,
repulsion = 1,
labels = NULL,
shortenLabels = "none",
labelLength = 6,
labelPattern = c(5, "'", 3, "'", 3),
charToRm = NULL,
labelScale = TRUE,
labelFont = 1,
rmSingles = TRUE,
nodeColor = "gray90",
nodeTransp = 60,
borderWidth = 1,
borderCol = "gray80",
edgeFilter = "none",
edgeFilterPar = NULL,
edgeWidth = 1,
edgeTransp = 0,
edgeCol = NULL,
title = NULL,
legend = TRUE,
legendPos = "topright",
legendGroupnames = NULL,
legendTitle = NULL,
legendArgs = NULL,
cexNodes = 1,
cexLabels = 1,
cexTitle = 1.2,
cexLegend = 1,
mar = c(2, 2, 4, 6),
...
)
x |
object of class |
adjusted |
logical indicating whether the adjacency matrix based on
adjusted p-values should be used. Defaults to |
layout |
indicates the layout used for defining node positions. Can be
a character with one of the layouts provided by
|
repulsion |
integer specifying repulse radius in the spring layout; for a value lower than 1, nodes are placed further apart |
labels |
defines the node labels. Can be a character vector with an
entry for each node. If |
shortenLabels |
character indicating how to shorten node labels.
Ignored if node labels are defined via
|
labelLength |
integer defining the length to which labels shall
be shortened if |
labelPattern |
vector of three or five elements, which is used if
argument |
charToRm |
vector with characters to remove from node names. Ignored if
labels are given via |
labelScale |
logical. If |
labelFont |
integer defining the font of node labels. Defaults to 1. |
rmSingles |
logical. If |
nodeColor |
character or numeric value specifying node colors. Can also be a vector with a color for each node. |
nodeTransp |
an integer between 0 and 100 indicating the transparency of node colors. 0 means no transparency, 100 means full transparency. Defaults to 60. |
borderWidth |
numeric specifying the width of node borders. Defaults to 1. |
borderCol |
character specifying the color of node borders. Defaults to "gray80" |
edgeFilter |
character indicating whether and how edges should be
filtered. Possible values are |
edgeFilterPar |
numeric value specifying the "x" in |
edgeWidth |
numeric specifying the edge width. See argument
|
edgeTransp |
an integer between 0 and 100 indicating the transparency of edge colors. 0 means no transparency (default), 100 means full transparency. |
edgeCol |
character vector specifying the edge colors. Must be of length 6 for the discordant method (default: c("hotpink", "aquamarine", "red", "orange", "green", "blue")) and of lengths 9 for permutation tests and Fisher's z-test (default: c("chartreuse2", "chartreuse4", "cyan", "magenta", "orange", "red", "blue", "black", "purple")). |
title |
optional character string for the main title. |
legend |
logical. If |
legendPos |
either a character specifying the legend's position or a
numeric vector with two elements giving the x and y coordinates of the
legend. See the description of the x and y arguments of
|
legendGroupnames |
a vector with two elements giving the group names shown in the legend. |
legendTitle |
character specifying the legend title. |
legendArgs |
list with further arguments passed to
|
cexNodes |
numeric scaling node sizes. Defaults to 1. |
cexLabels |
numeric scaling node labels. Defaults to 1. |
cexTitle |
numeric scaling the title. Defaults to 1.2. |
cexLegend |
numeric scaling the legend size. Defaults to 1. |
mar |
a numeric vector of the form c(bottom, left, top, right) defining
the plot margins. Works similar to the |
... |
further arguments being passed to |
diffnet
, netConstruct
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.