export.plots: Exports MCFS-ID result plots

Description Usage Arguments Examples

View source: R/rmcfs.plot.R

Description

Saves all MCFS-ID result plots in the specified directory.

Usage

1
2
3
4
export.plots(mcfs_result, data = NULL, idgraph = NULL, 
                    path, label = "mcfs", color = "darkred",
                    size = NA, image_width = 8, image_height = 6, 
                    plot_format = c("pdf","svg","png"), cex = 1)

Arguments

mcfs_result

result from mcfs function.

data

input data frame used to produce mcfs_result.

idgraph

idgraph/igraph S3 object representing feature interdependencies. This object is produced by build.idgraph function.

path

path to the where plot files should be saved.

label

a common prefix label of all plot files.

color

it defines main color of all plots.

size

number of features to plot.

image_width

width of plots (in inches).

image_height

height of plots (in inches).

plot_format

image format of plot files - one of the following: "pdf","svg","png".

cex

size of fonts.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  ## 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)

  #export plot files
  export.plots(result, adata, idgraph = gid, path = tempdir(), label = "mcfs", color = "darkgreen")

  
## End(Not run)###dontrunend

rmcfs documentation built on Sept. 18, 2021, 5:07 p.m.

Related to export.plots in rmcfs...