View source: R/calculate_performance.R
prepare_data_for_plot | R Documentation |
Prepare performance data provided in a COBRAPerformance
object
(obtained by calculate_performance
) for plotting.
prepare_data_for_plot(
cobraperf,
keepmethods = NULL,
incloverall = TRUE,
colorscheme = "hue_pal",
facetted = TRUE,
incltruth = TRUE,
conditionalfill = TRUE
)
cobraperf |
A |
keepmethods |
A character vector consisting of methods to retain for
plotting (these should be a subset of |
incloverall |
A logical indicating whether the "overall" results should be included if the results are stratified by an annotation. |
colorscheme |
Either a character string giving the color palette to use to define colors for the different methods, or a character vector with colors to use. The available pre-defined palettes depend on the number of different methods to distinguish. The choices are:
If the number of allowed methods is exceeded, the colorscheme defaults to
|
facetted |
A logical indicating whether the results should be split into
subpanels when stratified by an annotation ( |
incltruth |
A logical indicating whether the truth should be included in Venn diagrams. |
conditionalfill |
A logical indicating whether the points (in FDR/TPR, FDR/NBR, FSR/NBR plots) should be filled conditional on whether they satisfy the imposed criterion (e.g., false discovery rate control at imposed threshold). |
A COBRAPlot
object
Charlotte Soneson
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
binary_truth = "status",
cont_truth = "none",
aspects = c("fdrtpr", "fdrtprcurve",
"tpr", "roc"),
thrs = c(0.01, 0.05, 0.1), splv = "none")
cobraplot <- prepare_data_for_plot(cobraperf, keepmethods = NULL,
colorscheme = "Dark2")
## User-specified colors
cobraplot2 <- prepare_data_for_plot(cobraperf, keepmethods = NULL,
colorscheme = c("blue", "red", "green"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.