item.scores: Create a stacked bar graph showing score level frequencies...

Description Usage Arguments Value

Description

Create a stacked bar graph showing score level frequencies per item.

Usage

1
2
item.scores(results, dim = NULL, freqs = TRUE, palette = "BASS",
  writeout = FALSE, imageType = "pdf", fileSuffix = NULL, ...)

Arguments

results

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

dim

A numeric vector that specifies for which dimension(s) to create graphic/tables. If NULL, output and graphics for each dimension will be produced.

freqs

A logical indicated whether frequencies or raw counts should be graphed.

palette

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

writeout

A logical indicating whether the graphics/tables should be written to to your working directory as your specified imageType and CSVs. If TRUE, the file name will begin itemscores and will include an index (if more than one graph is produced) 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.

...

Additional arguments to be passed to barplot function.

Value

Creates a stacked bar plot and returns a list with the following entries:

counts

A matrix with the raw counts of scores given to each construct level on each item. NAs indicate that the score level was not possible while 0s indicate that the score level was on the outcome space yet no one scored at that level.

proportions

A matrix with proportions of scores given to each construct level on each item.

Note that there will be one matrix per dimension. If a multi-dimensional analysis was run


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