View source: R/johnson_neyman.R
| jn_layer | R Documentation |
Returns a list of ggplot2 layers that overlay Johnson-Neyman significance
boundaries on an interplot output. Add to any interplot with +.
jn_layer(
jn,
line_color = "red",
linetype = "dashed",
shade_color = "grey80",
shade_alpha = 0.15,
label = TRUE
)
jn |
A |
line_color |
Color of the boundary lines. Default |
linetype |
Line type for boundaries. Default |
shade_color |
Fill color for non-significant regions. Default |
shade_alpha |
Transparency of shading. Default |
label |
Logical; if |
A list of ggplot2 layers.
m <- lm(mpg ~ wt * cyl, data = mtcars)
jn <- jn_interval(m, "cyl", "wt")
interplot(m, "cyl", "wt") + jn_layer(jn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.