Learn R Programming

esvis (version 0.2.0)

pp_annotate: Annotation function to add AUC/V to a given plot

Description

Annotation function to add AUC/V to a given plot

Usage

pp_annotate(formula, data, ref_group = NULL, x, y, text_size,
  theme = "standard")

Arguments

formula

A formula of the type out ~ group where out is the outcome variable and group is the grouping variable. Note the grouping variable must only include only two groups.

data

The data frame that the data in the formula come from.

ref_group

Optional character vector (of length 1) naming the reference group to be plotted on the x-axis. Defaults to the highest scoring group.

x

The x-axis location for the text.

y

The y-axis location for the text.

text_size

Size of the text used in the annotation

theme

The theme for the plot.