plot.carryTest: Produces simple bar plot of carryTest() result

View source: R/plot.carryTest.R

plot.carryTestR Documentation

Produces simple bar plot of carryTest() result

Description

This creates a bar plot (using base R graphics) showing the main results from a test for carryover effects: p-values per vignette attribute. For custom (and publication-quality) graphs, export result as data.frame with as.data.frame().

Usage

## S3 method for class 'carryTest'
plot(
  x,
  showsig = NULL,
  lcol = NULL,
  ltype = NULL,
  siglev = NULL,
  margins = NULL,
  ...
)

Arguments

x

carryTest object

showsig

Show vertical line to indicate sign. threshold? (optional, default=T)

lcol

Color of sign. threshold line (optional, changes 'col' argument for abline()).

ltype

Type of sign. threshold line (optional, changes 'lty' argument for abline()).

siglev

Significance threshold (optional, the default is 0.05).

margins

Plot margins (optional; changes par(mar())); must be a numeric vector of length 4.

...

ignored

Examples

## Not run: 
result <- carryTest(data=experimentdata, attributes=c("gender","age","income",
"education"),outcome="rating",task="taskID")

plot(result, lcol = "red", ltype=5)

## End(Not run)


cknotz/conjointdatachecks documentation built on Feb. 11, 2023, 12:04 a.m.