View source: R/marginal_plot.R
marginal_plot | R Documentation |
This function takes as an argument a regular flexplot graphic that has panels, then plots the "marginal" relationships for the panels. This makes it easier to see the average effect across the rows (or columns).
marginal_plot(p, columns = TRUE, rows = TRUE, grand_mean = TRUE)
p |
A flexplot graphic that has paneled variables. |
columns |
Logical. Should column panels be plotted? |
rows |
Logical. Should row panels be plotted? |
grand_mean |
Logical. Stating TRUE will generate a simple bivariate plot between X and Y |
grand_5mean |
Logical. Stating TRUE will generate a simple bivariate plot between X and Y |
A graphic with marginal plots
A graphic with marginal plots
p = flexplot(weight.loss~motivation | gender + rewards, data=exercise_data)
marginal_plot(p)
marginal_plot(p, rows=FALSE)
Create "margin plots"
This function takes as an argument a regular flexplot graphic that has panels, then plots the "marginal" relationships for the panels.
This makes it easier to see the average effect across the rows (or columns).
p = flexplot(weight.loss~motivation | gender + rewards, data=exercise_data)
marginal_plot(p)
marginal_plot(p, rows=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.