fwl_plot | R Documentation |
This function creates a bivariate plot of y
and x
after residualizing over a set of covariates w
.
fwl_plot(fml, data, ggplot = FALSE, n_sample = NULL, ...)
fwlplot(fml, data, ggplot = FALSE, n_sample = NULL, ...)
fml |
Of the form |
data |
A |
ggplot |
Boolean. Default is to use base R plot but if TRUE, use ggplot. |
n_sample |
Numeric. Number of observations to sample for each facet. If NULL, will plot all rows. |
... |
Additional arguments passed to |
Either NULL if ggplot = FALSE
or a ggplot object if ggplot = TRUE
.
fwl_plot(mpg ~ hp + wt | cyl, mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.