View source: R/plot.dimRandoTest.R
plot.dimRandoTest | R Documentation |
This creates a bar plot (using base R graphics) showing the main results from a test for successful vignette attribute randomization. Shown are p-values per vignette attribute based on chi-squared tests or one-way ANOVA estimations (see ?dimRandoTest for details). For custom (and publication-quality) graphs, export result as data.frame with as.data.frame().
## S3 method for class 'dimRandoTest' plot( x, showsig = NULL, lcol = NULL, ltype = NULL, siglev = NULL, margins = NULL, ... )
x |
dimRandoTest object |
showsig |
Show vertical line to indicate sign. threshold? (optional, default=T) |
lcol |
Color of sign. threshold line (optional, changes 'col' argument for abline()). |
ltype |
Type of sign. threshold line (optional, changes 'lty' argument for abline()). |
siglev |
Significance threshold (optional, the default is 0.05). |
margins |
Plot margins (optional; changes par(mar())); must be a numeric vector of length 4. |
... |
ignored. |
## Not run: result <- dimRandoTest(data=experimentdata, attributes=c("age","nationality","gender"), resvar = "respondent_gender", vartype = "categorical") plot(result) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.