plot.idgraph | R Documentation |
Invokes plot.igraph with predefined parameters to visualize interdependencies
graph (ID-Graph). Standard plot
function with custom parameters may be used instead of this one.
## S3 method for class 'idgraph'
plot(x,
label_dist = 0.5,
color = 'darkred',
cex = 1, ...)
x |
idgraph/igraph S3 object representing feature interdependencies. This object is produced by |
label_dist |
space between the node's label and the corresponding node in the plot. |
color |
it defines color of the graph nodes. |
cex |
size of fonts. |
... |
additional plotting parameters. |
## Not run: ###dontrunbegin
# create input data
adata <- artificial.data(rnd_features = 10)
showme(adata)
# Parametrize and run MCFS-ID procedure
result <- mcfs(class~., adata, cutoffPermutations = 0, featureFreq = 50,
finalCV = FALSE, finalRuleset = FALSE, threadsNumber = 2)
# build interdependencies graph for top 6 features
# and top 12 interdependencies and plot all nodes
gid <- build.idgraph(result, size = 6, size_ID = 12, orphan_nodes = TRUE)
plot(gid, label_dist = 1)
## End(Not run)###dontrunend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.