surveyPlot: Codes and plots a survey question.

Description Usage Arguments Details Value See Also

Description

This function takes extracts the data from a surveydata object, then analyses and plots it.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  surveyPlot(x, qid, statsFunction = "statsGuess",
    plotFunction = "plotGuess",
    codeFunction = "codeQuickArray", crossbreak,
    onlyBreaks = seq_along(x$crossbreak), ...)

  ## S3 method for class 'surveyor'
 surveyPlot(x, qid,
    statsFunction = "statsGuess",
    plotFunction = "plotGuess",
    codeFunction = "codeQuickArray",
    crossbreak = x$crossbreak,
    onlyBreaks = seq_along(x$crossbreak), ...)

Arguments

x

Object to plot, of class surveyor, see also as.surveyor

qid

String. Unique question identifier, e.g. "Q4"

statsFunction

A reference to a function that summarizes the coded data. Defaults to statsGuess

plotFunction

A reference to a function that plots the summarized data. Defaults to plotGuess

codeFunction

A reference to a function that processes the question data. Defaults to codeGuess

crossbreak

A list of crossbreak vectors (each must be a named factor). See also as.surveyor

onlyBreaks

Numeric vector that limits crossbreak processing

...

Passed to methods

Details

This is a generic function, with an implementation for class surveyor, see also as.surveyor. The package surveybraid implements additional methods for surveybraid and surveybraidppt. See also as.surveybraid and as.surveybraidppt.

Value

Depends on method, but typically a list of as.surveyorPlot objects

See Also

as.surveyor


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