Plots the summary of bootstrap results, either z-scores or factor loadings.
qmb.plot(qmbsum, type = c("zsc", "loa"), nfactors,
cex = 0.7, cex.leg = 0.8, errbar.col = "black",
lwd = 1, lty = 1, vertdist = 0.2, limits = NULL,
r.names = NA, sort = c("none", "difference", "sd"),
sbset = NULL, leg.pos = "topleft",
bty = "n", plot.std = TRUE, pch= NULL,
col=NULL, grid.col="gray", ...)
an object with the summary of bootstrap results, as produced by qmb.summary
.
the subject to plot, either z-zcores of statements or factor loadings of Q-sorts.
number of factors extracted.
a numerical value giving the amount by which plotting text and symbols should be magnified relative to the default (see par
).)
a numerical value giving the amount by which the legend should be magnified relative to cex
.)
colour used for the error bars. Defaults to "black"
.
line width (see par
).
line type (see par
).
distance between the values for each factor.
axis limits for the numerical values. If set to NULL
, the limits are automatically set as c(-1, 1)
when type = "loa"
, and as the minimum and maximum values of z-scores (including the error bars) when type = "zsc"
names of the items to be printed in the axis ticks(either Q-sorts when type = "loa"
, or statements when type = "zsc"
). When the value is NULL
, it defaults to rownames
.
ordering of the items in the axis. If set to "none"
, items are ordered by the default order in the dataset. If set to "difference"
, items are ordered according to the variability in the values across factors. If set to "sd"
, items are ordered according to the sum of the errors obtained in the bootstrap.
How many items are to be printed? When the value is NULL
, it plots all the items.
Position of the legend.
Legend box (see legend
).
logical value. When set to TRUE
(default), it prints the points for values obtained with the standard analysis (non bootstrapped).
plotting symbols. Defaults to NULL
, in which case the symbols are selected automatically. If provided, the vector needs to contain at least as many elements as number of factors. In addition, if argument plot.std == TRUE
(default) the vector needs to contain at least double as many elements as vectors, in order to extract (a) the plotting symbols for bootstrapped values (the first elements) and (b) the plotting symbols for standard values (the next elements).
colours for the points. At least as many elements as number of factors have to be provided.
colour of the grid.
additional arguments to be passed to the functions dotchart
, mtext
, segments
, points
, abline
or legend
.
Aiora Zabala
Zabala, Pascual (2016) Bootstrapping Q Methodology to Improve the Understanding of Human Perspectives. PLoS ONE 11(2): e0148087.
qmethod
, qmboots
, qmb.summary
data(lipset)
boots <- qmboots(lipset[[1]], nfactors = 3, nsteps = 50,
load = "auto", rotation = "varimax",
indet = "qindet", fsi = TRUE)
boots.summary <- qmb.summary(boots)
qmb.plot(boots.summary, 3, type = "loa", sort="difference")
Run the code above in your browser using DataCamp Workspace