plotworth {prefmod} | R Documentation |
A plot of the worth parameter matrix obtained from the fit of a pattern model is produced.
The worth parameter matrix is produced by patt.worth
.
plotworth(worthmat, main = "Preferences", ylab = "Estimate", psymb = NULL, ylim = range(worthmat))
worthmat |
worth parameter matrix, object of class pattW .
Alternatively, the contents of a user defined matrix can also be plotted
(for an example see llbt.design ,
provided that the rows correspond to objects and the columns to groups. |
main |
main title of the plot. |
ylab |
y-axis label |
psymb |
plotsymbols for objects, see Details below |
ylim |
limits for y-axis |
Plotsymbols can be defined as an integer vector of length equal to the
number of objects, e.g., psym = c(15,22,18)
. They specify the graphical option pch
as used in
the points
function. The default (psymb = NULL
) uses
the symbols 15 through 18 and 21 through 25. The number of symbols is determined
from the number of rows in worthmat
. A display of some plotsymbols may
be obtained from the correponding example below.
Reinhold Hatzinger
## 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) ## fit only first three objects with SEX effect data(cemspc) m2<-pattPC.fit(cemspc, nitems=3, formel=~SEX, elim=~SEX, undec=TRUE) ## calculate and plot worth parameters m2worth<-patt.worth(m2) plotworth(m2worth)