View source: R/view_interaction.R
See the example for a better idea of how to use the function. This style of plot is really useful to use when you have run many eg. interaction testing in a regression analysis and you want to see which variables are barely significant vs very significant, etc. Thus, multiple comparison problems can be dealt with as the plot shows how significant a variable is compared to the rest of the significance tests. This is generally the same reason why GWAS studies use Manhattan plots.
1 | view_interaction(data, groups = "~Yterms", ylab = "Exposure")
|
data |
Dataset from a regression with the p-values |
groups |
The column that splits the tests up, usually is the dependent variable for regression type analyses. |
ylab |
The label for the y-axis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.