Skip to contents

Provides a plausibility curve for each group or variable.

Usage

# S3 method for data.frame
plotPlausible(frame, add=FALSE, main=NULL, ylab="Outcome", xlab="", ylim=NULL, type="right", offset=0, scale=1, col="black")

# S3 method for formula
plotPlausible(formula, add=FALSE, main=NULL, ylab="Outcome", xlab="", ylim=NULL, type="right", offset=0, scale=1, col="black")

Arguments

frame

a set of (non-empty) numeric vectors of data values

formula

a formula of the form lhs ~ rhs where lhs is a numeric variable giving the data values and rhs a factor giving the corresponding groups

add

whether the plot should added to the existing plot

ylab

a label for the y-axis

xlab

a label for the x-axis

main

a custom title for the graph

ylim

custom limits for the y axis

type

sides of the plot to be included

offset

a value indicating the offset of the plot

scale

a value that indicates the width of the plot

col

a value for the shaded color of the plot

Details

`plotPlausible` can be used to initialize a new plot or add to an existing plot (using the `add` argument). `addPlausible` is identical to `plotPlausible` without the need to utilize the `add` argument.

Value

The returned plot contains densities for the groups or variables.