add_stars: Add Significance Stars

Description Usage Arguments Examples

View source: R/add_stars.R

Description

This function creates a character vector of length(pval) adding significance stars according to the alpha values specified.

Usage

1
add_stars(pval, alpha = c(0.001, 0.01, 0.05))

Arguments

pval

A vector of pvalues

alpha

a vector of three critical significance thresholds, defaults to c(0.001, 0.01, 0.05).

Examples

1
2
p <- c(0.1, 0.3, 0.0005, 0.02)
add_stars(p)

prestevez/victim documentation built on Jan. 30, 2020, 7:16 p.m.