rp.plots2pdf {responsePatterns} | R Documentation |
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
)
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.
Value
Creates a PDF file.
See Also
rp.acors
, rp.patterns
, rp.plot
Examples
rp <- rp.acors(rp.simdata, id.var="optional_ID")
## Not run: rp.plots2pdf(rp)
[Package responsePatterns version 0.1.1 Index]