plot.mcfs | R Documentation |
Plots various aspects of the MCFS-ID result.
## S3 method for class 'mcfs'
plot(x, type = c("features", "ri", "id", "distances", "cv", "cmatrix", "heatmap"),
size = NA,
ri_permutations = c("max", "all", "sorted", "none"),
diff_bars = TRUE,
features_margin = 10,
cv_measure = c("wacc", "acc", "pearson", "MAE", "RMSE", "SMAPE"),
heatmap_norm = c('none', 'norm', 'scale'),
heatmap_fun = c('median', 'mean'),
color = c('darkred'),
gg = TRUE,
cex = 1, ...)
x |
'mcfs' S3 object - result of the MCFS-ID experiment returned by |
type |
|
size |
number of features to plot. |
ri_permutations |
if |
diff_bars |
if |
features_margin |
if |
cv_measure |
if |
heatmap_norm |
if |
heatmap_fun |
if |
color |
it defines main color of the following type of plots: 'ri', 'id', 'heatmap', 'features' and 'cmatrix'. |
gg |
if |
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 = 10,
finalCV = FALSE, finalRuleset = TRUE, threadsNumber = 2)
# Plot & print out distances between subsequent projections.
# These are convergence MCFS-ID statistics.
plot(result, type = "distances")
print(result$distances)
# Plot & print out 50 most important features and show max RI values from
# permutation experiment.
plot(result, type = "ri", size = 50)
print(head(result$RI, 50))
# Plot & print out 50 strongest feature interdependencies.
plot(result, type = "id", size = 50)
print(head(result$ID, 50))
# Plot features ordered by RI. Parameter 'size' is the number of
# top features in the chart. By default it is set on cutoff_value + 10
plot(result, type = "features", cex = 1)
# Here we set 'size' at fixed value 10.
plot(result, type = "features", size = 10)
# Plot cv classification result obtained on top features.
# In the middle of x axis red label denotes cutoff_value.
# plot(result, type = "cv", measure = "wacc", cex = 0.8)
# Plot & print out confusion matrix. This matrix is the result of
# all classifications performed by all decision trees on all s*t datasets.
plot(result, type = "cmatrix")
## End(Not run)###dontrunend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.