dd: Double density plots

Description Usage Arguments Value Examples

View source: R/plots.R

Description

A double density plot shows the densities of two groups. Both have an AUC of 1. It can be used to compare the results of a predictive model, but also the predictive potential of a single feature.

Usage

1
dd(x, g)

Arguments

x

A numeric vector containing the values.

g

A vector containing two unique values, indicating the groups.

Value

An object of class 'ggplot'.

Examples

1
2
3
x <- c(rnorm(100,1), rnorm(100, 2))
g <- rep(letters[1:2], each = 100)
dd(x, g)

EdwinTh/mytools documentation built on May 14, 2019, 7:41 a.m.