plot.select {nutriNetwork} | R Documentation |
Plot function for S3 class "select"
Description
Plot the optimal graph by model selection
Usage
## S3 method for class 'select'
plot(x, vis= NULL, xlab= NULL, ylab= NULL, n.mem= NULL,
vertex.label= FALSE, ..., layout= NULL, label.vertex= "all",
vertex.size= NULL, vertex.color= NULL, edge.color= "gray29", sel.nod.label= NULL,
label.size = NULL, w.btw= 800, w.within = 10, sign.edg= TRUE, edge.width= NULL,
edge.label= NULL, max.degree= NULL, layout.tree= NULL, root.node= NULL,
degree.node= NULL, curve= FALSE, pos.legend= "bottomleft", cex.legend= 0.8,
iterl = NULL, temp = NULL, tk.width = NULL, tk.height= NULL)
Arguments
x |
An object with S3 class "select" |
vis |
Visualizing the results as a graph (network) or as a matrix. There are 4 options to visulize the selected graph: (i) "CI": plotting conditional independence (CI) relationships between variables, (ii) "interactive": plotting the conditional independence network, where opens a new windows with interactive graph drawing facility, and (iii) "parcor.network": plots the estimated graph based on partial correlation values. (iv) "parcor.interactive": plots the estimated graph based on partial correlation matrix with an interactive graph drawing facility. Default is "CI". |
xlab |
ONLY applicable when |
ylab |
ONLY applicable when |
n.mem |
A vector of memberships. For example, the |
vertex.label |
ONLY applicable when |
... |
ONLY applicable when |
layout |
ONLY applicable when |
label.vertex |
ONLY applicable when |
vertex.size |
Optional. The size of vertices in the graph visualization. The default value is 7. |
vertex.color |
ONLY applicable when |
edge.color |
ONLY applicable when |
sel.nod.label |
ONLY applicable when |
label.size |
ONLY applicable for |
w.btw |
Distance between nodes from different memberships of |
w.within |
Distance of nodes within one membership of |
sign.edg |
Optional. ONLY applicable when |
edge.width |
Optional. ONLY applicable when |
edge.label |
Optional. ONLY applicable when |
max.degree |
Optional. ONLY applicable when |
layout.tree |
Optional. ONLY applicable when |
root.node |
Optional. ONLY applicable when |
degree.node |
Optional. ONLY applicable when |
curve |
Optional. ONLY applicable when |
pos.legend |
Applicable when |
cex.legend |
Applicable when |
iterl |
Optional. ONLY applicable when |
temp |
Optional. ONLY applicable when |
tk.width |
Optional. The size of the drawing area of interactive plot. |
tk.height |
Optional. The size of the drawing area of interactive plot. |
Value
An object with S3 class "select"
is returned:
network |
Plot of a selected graph, when |
adjacency |
Conditional independence (CI) relationships between variables, when |
network |
Interactive plot of a selected graph with .eps format, when |
Author(s)
Pariya Behrouzi
Maintainer: Pariya Behrouzi pariya.behrouzi@gmail.com
References
Behrouzi, P., and Wit, E. C. (2017c). netgwas: An R Package for Network-Based Genome-Wide Association Studies. arXiv preprint, arXiv:1710.01236.
See Also
Examples
data(vfit)
out <- nutriNetwork(vfit)
sel <- selectnet(out)
plot(sel, vis= "image.parcorMatrix")