Learn R Programming

qmethod (version 1.3.0)

plot.QmethodRes: Q Method: plot for statement z-scores

Description

Takes an object QmethodRes resulting from qmethod and makes a dot-chart with the z-scores for statements and all factors.

Usage

## S3 method for class 'QmethodRes':
plot(x, xlab = 'z-scores', ylab = 'statements', pchlist = NULL,
     colours = NULL, fnames = NULL, legend = TRUE, ...)

Arguments

x
results object returned by qmethod.
xlab
label for x axis. Defaults to 'z-scores'.
ylab
label for y axis. Defaults to 'statements'.
pchlist
array of pch symbols to be used in plotting the points for each factor. Defaults to a pre-defined set of symbols.
colours
array of colours to be used when plotting the points for each perspective. Defaults to a pre-defined set of colours based on the rainbow palette.
fnames
names for factors to be used in the legend. In results where factor names have not been changed (using, e.g. q.fnames) it defaults to 'Factor 1', 'Factor 2', etc.
legend
logical; if FALSE, no legend will be drawn.
...
other arguments for plot.

See Also

dotchart and points.

Examples

Run this code
data(lipset)
results <- qmethod(lipset[[1]], nfactors = 3, rotation = "varimax")
title <- "Q method z-scores, lipset dataset"
subtitle <- paste0("Three factors, PCA, varimax. Printed on ",
                  Sys.Date())
plot(results, main = title, sub = subtitle)

Run the code above in your browser using DataLab