CPC.graph: Plots the cumulative probability curves from 'craschR'...

Description Usage Arguments Value

Description

Plots the cumulative probability curves from craschR output.

Usage

1
2
3
CPC.graph(results, itemOrder = NULL, palette = "BASS", observed = FALSE,
  minCell = 8, focusTheta = NULL, logitAxis = "x", writeout = FALSE,
  imageType = "pdf", fileSuffix = NULL)

Arguments

results

The output from a run of craschR. (link?)

itemOrder

A numeric vector that specifies which items from the output should be graphed. If NULL, all items will be graphed.

palette

A character string indicating the color scheme. Can be "BASS", "grey", or any RColorBrewer palette.

observed

A logical indicating whether or not the observed proportions should be graphed as points along with the curve.

minCell

A positive integer indicating the smallest cell value to plot an observed proportion. Only applies if observed=TRUE.

focusTheta

A numeric vector indicating at which logit values to plot a vertical line and print the probabilities for each category. Only applies if observed=FALSE.

logitAxis

A character indicating if the logits should be graphed on the x-axis (traditional) or y-axis (as in Wilson, 2005). Choose from c("x", "y").

writeout

A logical indicating whether the graphic should be written to to your working directory as your specified imageType. If TRUE, the file name will begin CPC, an index, and the fileSuffix if provided.

imageType

A character string indicating the format for graphics (if writeout = TRUE). Supported types: c("pdf","svg","jpeg","bmp","tiff","png").

fileSuffix

A character string that will be affixed to the end of each file name (if writeout = TRUE). Use this if you are conducting multiple analyses in the same working directory and do not wish for your existing files to be overwritten.

Value

One plot for each item is created.


amyarneson/crasch documentation built on May 10, 2019, 10:29 a.m.