export.plots {rmcfs} | R Documentation |
Exports MCFS-ID result plots
Description
Saves all MCFS-ID result plots in the specified directory.
Usage
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 |
data |
input data frame used to produce |
idgraph |
idgraph/igraph S3 object representing feature interdependencies. This object is produced by |
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
## 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
[Package rmcfs version 1.3.5 Index]