plot.uniFiltRes: Plots an object of class uniFiltRes

Description Usage Arguments Value Examples

View source: R/plot_uniFiltRes.R

Description

For plotting an S3 object of type 'uniFiltRes'

Usage

1
plot.uniFiltRes(uniFilt_results, pval_threshold = NULL)

Arguments

pval_threshold

is the cutoff value for pvalues, can be a single value or a vector of distinct pvalues

uniFiltRes

an object of the class 'uniFiltRes', usually created by univariate_feature_selection.

Value

plots ggplot2 object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dontrun{
library(peppuR)
library(missForest)
library(mice)

data('single_source')
data('multi_source')

x_multi = multi_source$X
y_multi = multi_source$Y

x_single = single_source$X
y_single = single_source$Y

sample_cname = 'ID'
outcome_cname = 'Group'
pair_cname = 'paircol'

result = as.MLinput(x = x_single, y = y_single, categorical_features = T , sample_cname = sample_cname, outcome_cname = outcome_cname, pair_cname = pair_cname)
result2 = as.MLinput(x = x_multi, y = y_multi, categorical_features = T, sample_cname = sample_cname, outcome_cname = outcome_cname, pair_cname = pair_cname)

imputed_res = impute_missing(result, method = 'randomforest')
imputed_res2 = impute_missing(result2, method = 'randomforest')

ufs_result = univariate_feature_selection(imputed_res)
ufs_result2 = univariate_feature_selection(imputed_res2)

plot(ufs_result)
plot(ufs_result2)

}

pmartR/peppuR documentation built on Jan. 17, 2020, 12:54 p.m.