prefmod-defunct | R Documentation |
A list of functions that are no longer part of prefmod.
plotworth(worthmat, main = "Preferences", ylab = "Estimate", psymb = NULL, pcol = NULL, ylim = range(worthmat), ...)
worthmat |
parameter matrix as generated from |
main |
main title of the plot. |
ylab |
y-axis label |
psymb |
plotsymbols for objects, see Details below |
pcol |
colours for objects, see Details below |
ylim |
limits for y-axis |
... |
further graphical parameters, use e.g. |
plotworth()
was initially used to plot worth or model parameters from LLBT or pattern models (in a matrix created by llbt.worth()
or patt.worth()
).
Now, the generic plot
(i.e., plot.wmat()
) has to be used.
## Not run: ################### ### plotworth() ### ################### # fit only first three objects with SEX effect m2 <- pattPC.fit(cemspc, nitems = 3, formel = ~SEX, elim = ~SEX, undec = TRUE) # calculate and plot worth parameters m2worth <- patt.worth(m2) plot.wmat(m2worth) plot.wmat(m2worth, pcol = "terrain") # display of some plotsymbols (pch) plot(0:25, rep(1, 26), pch = 0:25, cex = 1.5) text(0:25, rep(0.95, 26), 0:25) # usage of the "RColorBrewer" package library("RColorBrewer") mypalette <- brewer.pal(3, "Set1") plot.wmat(m2worth, pcol = mypalette) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.