View source: R/method-permute.r
null_permute | R Documentation |
Null hypothesis: variable is independent of others
null_permute(var)
var |
name of variable to permute |
a function that given data
generates a null data set.
For use with lineup
or rorschach
null_lm, null_dist
data(mtcars)
library(ggplot2)
ggplot(data=rorschach(method=null_permute("mpg"), n = 3, true=mtcars)) +
geom_boxplot(aes(x=factor(cyl), y=mpg, fill=factor(cyl))) +facet_grid(.~.sample) +
theme(legend.position="none", aspect.ratio=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.