Learn R Programming

qmethod (version 1.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=T, ...)

Arguments

x
number of Q-sorts in the study.
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. 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, nfactors=3, nstat=33, 
                    nqsorts=9, 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