Description Usage Arguments Value See Also
Creates surveyorPlot
object, a container for
either ggplot or lattice graphic. The method
print.surveyorPlot
knows how to print the final
plot object
1 2 3 4 | as.surveyorPlot(plot, surveyorStats, expansion = 1,
plotFunction = "", plotSize = par("din"),
addPlotTitle = surveyorStats$surveyorDefaults$addPlotTitle,
...)
|
plot |
A |
surveyorStats |
An |
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 |
A surveyorPlot object. This is a list of:
A ggplot
or lattice
object
Expansion factor. Used to adjust the vertical scale of the plot when there are many categories
String indicating which plot function created the plot. Useful for debugging
See also qType
Question identifier, e.g. "Q4"
Data used in the plot
Formatting function for axis, e.g.
formatRound
surveyPlot
to plot a surveyor object
Other surveyPlot arguments: codeGuess
,
statsGuess
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.