Description Usage Arguments Value See Also
A surveyorStats object contains all of the summarised
information necessary to create a plot. This is the input
data for as.surveyorPlot
.
1 2 3 4 5 | as.surveyorStats(data, surveyorCode,
ylabel = "Fraction of respondents",
formatter = "formatPercent", nquestion = NULL,
scale_breaks = NULL, stats_method = "",
plotFunction = "", ...)
|
data |
A data frame |
surveyorCode |
A surveyorCode object |
ylabel |
Character string to print as plot y label |
formatter |
Name of a formatting function |
nquestion |
Number of identifiable questions / responses, used for plot sizing downstream |
scale_breaks |
Vector that specifies breaks in ggplot |
stats_method |
Character. Ddescription of calling statsFunction name - for audit trail |
plotFunction |
Character. Description of plotFunction to use |
... |
Ignored |
A surveyorStats object. This is a list of:
A data frame containing the summarized data
A list with
surveyorDefaults
The plot title to display
Question id
Plot y-axis label
Formatting function to use
Number of subquestions. Used to determine vertical size of plot
Scale breaks
stats function - used for audit trail
plot function to use. See also
plotGuess
Question type, as
returned by qType
surveyPlot
to plot a surveyor object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.