View source: R/plot_simple_slope.R
plot_simple_slope | R Documentation |
Plots the simple slope min and max estimates from power_interaction().
plot_simple_slope(power_data, x = NULL, facets = NULL)
power_data |
Data frame of results from power_interaction(). Can accept the raw results if up to 2 parameters were varied during simulation. Any more and data should be filtered first. |
x |
Optional, the x-axis of the plot. Default is the first variable after 'pwr'. |
facets |
Optional, grouping variable for plot facets. Default is the second variable after 'pwr' if present. |
A ggplot2 object
power_analysis <- power_interaction(n.iter = 10,N = seq(100,300,by=100),
r.x1.y = 0,r.x2.y = .1,r.x1x2.y = -.2,r.x1.x2 = .3,detailed_results = TRUE)
plot_simple_slope(power_analysis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.