Learn R Programming

rmcfs (version 1.1.1)

plot.idgraph: Plots interdependencies graph

Description

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.

Usage

"plot"(x, label.dist = 0.5, cex = 1, ...)

Arguments

x
idgraph/igraph S3 object representing feature interdependencies. This object is produced by build.idgraph function.
label.dist
space between the node's label and the corresponding node in the plot.
cex
size of fonts.
...
additional plotting parameters.

Examples

Run this code
  ### Set up java parameter and load rmcfs package
  options(java.parameters = "-Xmx4g")
  library(rmcfs)
  
  # create input data
  adata <- artificial.data(rnd.features = 10)
  showme(adata)
  
  # Parametrize and run MCFS-ID procedure
  result <- mcfs(class~., adata, projections = 300, projectionSize = 4, 
                 cutoffPermutations = 0, finalCV = FALSE, finalRuleset = FALSE, 
                 threadsNumber = 2)

  # build interdependencies graph (all default parameters).
  gid <- build.idgraph(result)
  plot(gid)
  
  # build interdependencies graph for top 6 features 
  # and top 12 interdependencies and plot all nodes
  gid <- build.idgraph(result, size = 6, size_ID = 12, plot_all_nodes = TRUE)
  plot(gid, label.dist = 1)

Run the code above in your browser using DataLab