rp.plot {responsePatterns}R Documentation

Plot an individual response

Description

This function plots an individual response for easier visual inspection. The observation can be identified by one of the following methods: observation number (obs), row name (rowname), or the value of the ID variable (id, if defined in the rp.object). Only one of these identifiers should be specified. Using this function requires that the data are stored in the ResponsePatterns object.

Usage

rp.plot(
  rp.object,
  obs = NULL,
  rowname = NULL,
  id = NULL,
  plot = TRUE,
  text.output = FALSE,
  groups = NULL,
  page.breaks = NULL,
  plot.lags = 10,
  bw = FALSE
)

Arguments

rp.object

A ResponsePatterns object.

obs

An integer. The number of observation to plot.

rowname

A string. The row name of the observation to plot.

id

A string. The value of the ID variable (if defined in the ResponsePatterns object).

plot

A logical scalar. Should the responses be plotted?

text.output

A logical scalar. Should the responses be printed to the console?

groups

A list of vectors. Defines groups of items that should be plotted using the same color.

page.breaks

A vector. Draws a vertical line after the specified items (useful if you want to display the pagination of the questionnaire in the plot).

plot.lags

How many lags should be displayed under the plot?

bw

A logical scalar. Should the plot be printed in black and white?

Value

Plots a graph.

See Also

rp.acors, rp.patterns, rp.plots2pdf

Examples

rp <- rp.acors(rp.simdata, id.var="optional_ID")
rp.plot(rp, obs=1)
rp.plot(rp, rowname="12", groups=list(c(1:10),c(11:20)))
rp.plot(rp, id="Natalya", page.breaks=c(5,10,15))

[Package responsePatterns version 0.1.1 Index]