Learn R Programming

responsePatterns (version 0.1.1)

rp.plots2pdf: Export multiple plots to PDF

Description

This function exports individual plots of all observations to a PDF file. Limit the number of observation via rp.select.

Usage

rp.plots2pdf(
  rp.object,
  file = "rp_plots.pdf",
  groups = NULL,
  page.breaks = NULL,
  bw = FALSE
)

Value

Creates a PDF file.

Arguments

rp.object

A ResponsePatterns object.

file

A string. A filename of the PDF file.

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 items (useful if you want to display the pagination of the questionnaire in the plot).

bw

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

Details

If you have trouble exporting the PDF file, close all active graphical devices by running dev.off several times.

See Also

rp.acors, rp.patterns, rp.plot

Examples

Run this code
rp <- rp.acors(rp.simdata, id.var="optional_ID")
if (FALSE) rp.plots2pdf(rp)

Run the code above in your browser using DataLab