plotSortedPredictedProbs: Plot sorted prediction probabilities

Description Usage Arguments Value

View source: R/plotSortedPredictedProbs.R

Description

Plot sorted prediction probabilities

Usage

1
2
3
4
5
6
7
8
9
plotSortedPredictedProbs(
  probs.predicted,
  logicals.expected = NULL,
  cutoff = NULL,
  show.confusion = T,
  show.hline = T,
  annotations = NULL,
  title = NULL
)

Arguments

probs.predicted

A numeric vector of prediction probabilities.

logicals.expected

A character vector of response labels. If provided, dots will be coloured by these labels.

cutoff

If provided, a horizontal line will be drawn at the specified value to indicate the chosen cutoff.

show.confusion

Show confusion matrix?

annotations

A vector containining the desired legend names for the responses, e.g. c('BRCA proficient','BRCA deficient')

title

User specified plot title.

Value

A ggplot2 bar plot


luannnguyen/mltoolkit documentation built on Aug. 29, 2020, 8:31 a.m.