Learn R Programming

mpower (version 0.1.0)

plot_summary: Plot summaries of power simulation

Description

Plot summaries of power simulation

Usage

plot_summary(sim, crit, thres, digits = 3, how = "greater")

Value

A 'ggplot2' graphics.

Arguments

sim

A Sim or a SimCurve object, output from `sim_power()` or `sim_curve()`.

crit

A string specifying the significance criteria.

thres

A number or vector of numbers specifying the thresholds of "significance".

digits

An integer for the number of decimal points to display.

how

A string, whether to compare the criterion 'greater' or 'lesser' than the threshold.