as.surveyorPlot: Creates surveyorPlot object and adds plot title.

Description Usage Arguments Value See Also

Description

Creates surveyorPlot object, a container for either ggplot or lattice graphic. The method print.surveyorPlot knows how to print the final plot object

Usage

1
2
3
4
  as.surveyorPlot(plot, surveyorStats, expansion = 1,
    plotFunction = "", plotSize = par("din"),
    addPlotTitle = surveyorStats$surveyorDefaults$addPlotTitle,
    ...)

Arguments

plot

A ggplot or lattice object

surveyorStats

An as.surveyorStats object

expansion

Multiplier for plot vertical dimension

plotFunction

String. The plot function that was used to create the plot. This is used purely to keep an audit trail of how the final output was created.

plotSize

Numeric vector of length 2, specifying the width and height of the plot (in inches)

addPlotTitle

If TRUE, adds question text as plot title, otherwise the plot has no title

...

Ignored

Value

A surveyorPlot object. This is a list of:

plot

A ggplot or lattice object

expansion

Expansion factor. Used to adjust the vertical scale of the plot when there are many categories

plotFunction

String indicating which plot function created the plot. Useful for debugging

qType

See also qType

qid

Question identifier, e.g. "Q4"

data

Data used in the plot

nquestion
formatter

Formatting function for axis, e.g. formatRound

See Also

as.surveyorStats, plotGuess

surveyPlot to plot a surveyor object

Other surveyPlot arguments: codeGuess, statsGuess


andrie/surveyor documentation built on May 10, 2019, 11:21 a.m.