plot.mr {rimu} | R Documentation |
Plot multiple-response objects
Description
The plot method for mr
objects is an UpSet plot, showing co-occurences of the various categories. The image
method is a heatmap of the variable plotted against itself with mtable
.
Usage
## S3 method for class 'mr'
plot(x, ...)
## S3 method for class 'mr'
image(x, type = c("overlap", "conditional", "association", "raw"), ...)
Arguments
x |
|
type |
|
... |
Not used |
Value
Used for its side effect
See Also
Examples
data(rstudiosurvey)
other_software<- as.mr(rstudiosurvey[[40]])
## only those with at least 20 responses
common<-mr_lump(other_software, n=20)
common<-mr_drop(common, "None")
## UpSet plot
plot(common)
## images
image(common, type="conditional")
image(common, type="association")
[Package rimu version 0.6 Index]