Make a color-coded grid of odds ratios
1 2 3 | OR_grid_large(dat, x = "Exposure.Variable", y = "Strata", OR = "OR",
p.value = "p.value", alpha = 0.05, breaks = c(0, 0.3, 0.7, 1, 2, 5,
Inf), label_size = NULL, coord_flip = FALSE)
|
dat |
A data frame |
x |
The value to map to the x axis |
y |
The value to map to the y axis |
OR |
The odds ratio |
p.value |
The p-value |
alpha |
The cutoff for significance |
breaks |
The discrete values by which to color code ORs |
label_size |
The size of the labels |
coord_flip |
Whether or not to flip coordinates |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.