plot.btmodel | R Documentation |
Base graphics plotting function for Bradley-Terry models.
## S3 method for class 'btmodel'
plot(x, worth = TRUE, index = TRUE, names = TRUE,
ref = TRUE, abbreviate = FALSE, type = NULL, lty = NULL,
xlab = "Objects", ylab = NULL, ...)
x |
an object of class |
worth |
logical. Should worth parameters (or alternatively coefficients on log-scale) be displayed? |
index |
logical. Should different indexes for different items be used? |
names |
logical. Should the names for the objects be displayed? |
ref |
logical. Should a horizontal line for the reference level be drawn?
Alternatively, |
abbreviate |
logical or numeric. Should object names be abbreviated? If numeric this controls the length of the abbreviation. |
type |
plot type. Default is |
lty |
line type. |
xlab , ylab |
x and y axis labels. |
... |
further arguments passed to |
btmodel
## data
data("GermanParties2009", package = "psychotools")
## Bradley-Terry model
bt <- btmodel(GermanParties2009$preference)
plot(bt)
plot(bt, worth = FALSE)
plot(bt, index = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.