vis_XGBoost {PoweREST}R Documentation

Visualization of the power estimations from XGBoost

Description

This function takes the result from 'pred_XGboost' and plots 2D/3D views of it,

Usage

vis_XGBoost(x,view='2D',legend_name='Power',
xlab='avg_log2FC_abs',ylab='mean_pct')

Arguments

x

The result dataframe from 'pred_XGboost'.

view

determines plot 2D/3D view, default='2D'.

legend_name

The name of legend, default='Power'.

xlab

The name of xlab, default='avg_log2FC_abs'.

ylab

The name of ylab, default='mean_pct'.

Value

A 2D/3D plot of the power results from XGBoost.

Author(s)

Lan Shui lshui@mdanderson.org

Examples

data(power_example)
# Fit the local power surface of avg_log2FC_abs between 1 and 2
avg_log2FC_abs_1_2<-dplyr::filter(power_example,avg_log2FC_abs>1 & avg_log2FC_abs<2)
# Fit the model
bst<-fit_XGBoost(power_example$power,avg_log2FC=power_example$avg_log2FC_abs,
avg_PCT=power_example$mean_pct,replicates=power_example$sample_size)
pred<-pred_XGBoost(bst,n.grid=30,xlim=c(0,1.5),ylim=c(0,0.1),replicates=3)
vis_XGBoost(pred,view='2D',legend_name='Power',xlab='avg_log2FC_abs',ylab='mean_pct')



[Package PoweREST version 0.1.0 Index]