View source: R/04_flowgraph_plots.R
fg_plot_qq | R Documentation |
Creates a QQ plot of a summary statistic.
fg_plot_qq(
fg,
type = "node",
index = 1,
summary_meta = NULL,
adjust_custom = "byLayer",
logged = TRUE,
p_thres = 0.05,
filter_adjust0 = 1,
filter_es = 0,
filter_btwn_tpthres = 1,
filter_btwn_es = 0,
shiny_plot = FALSE,
main = NULL,
interactive = FALSE,
path = NULL
)
fg |
flowGraph object. |
type |
A string indicating feature type the summary was created for 'node' or 'edge'. |
index |
The user must provide
|
summary_meta |
The user must provide
|
adjust_custom |
A function or a string indicating the
test adjustment method to use.
If a string is provided, it should be one of
|
logged |
A logical indicating whether or not to log the summary statistic p value. |
p_thres |
A double indicating a summary statistic threshold e.g. if we are plotting a T-test summary statistic, we can set the threshold to .05; nodes with a p-value greater than .05 will not be plotted. |
filter_adjust0 |
A numeric variable indicating what percentage of SpecEnr values compared (minimum) should be not close to 0. Set to 1 to not conduct filtering. |
filter_es |
A numeric variable between 0 and 1 indicating what the Cohen's D value of the nodes/edges in question must be greater or equal to, to be significant. |
filter_btwn_tpthres |
A numeric variable between 0 and 1 indicating the
unadjusted T-test p-value threshold used to test whether the actual
and expected feature values used to calculate the specified SpecEnr
feature are significantly different for each sample class. Note this only
needs to be specified for SpecEnr features. Combined
with |
filter_btwn_es |
A numeric variable between 0 and 1 indicating what the
Cohen's D value of the nodes/edges in question must be greater or
equal to, to be significant – see |
shiny_plot |
A logical indicating whether this plot is made for shiny; users don't need to change this. |
main |
A string or the title of the plot; if left as |
interactive |
A logical indicating whether or not plot should be an interactive ggiraph plot as opposed to a static plot. |
path |
A string indicating the path to where the function should save
the plot; leave as |
The interactive plot is made using the ggiraph
package.
A static or interactive qq plot.
flowGraph-class
fg_plot
plot_gr
fg_get_feature
fg_get_summary
no_cores <- 1
data(fg_data_pos2)
fg <- flowGraph(fg_data_pos2$count, class=fg_data_pos2$meta$class,
no_cores=no_cores)
fg_plot_qq(fg, type="node", summary_meta=NULL, adjust_custom="byLayer", index=1,
interactive=TRUE, logged=FALSE)
fg_plot_qq(fg, type="node", summary_meta=NULL, adjust_custom="byLayer", index=1,
interactive=FALSE, logged=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.