fwl_plot {fwlplot} | R Documentation |
FWL Plot
Description
This function creates a bivariate plot of y
and x
after residualizing over a set of covariates w
.
Usage
fwl_plot(fml, data, ggplot = FALSE, n_sample = 1000, alpha = 0.5, ...)
fwlplot(fml, data, ggplot = FALSE, n_sample = 1000, alpha = 0.5, ...)
Arguments
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. |
alpha |
Numeric. Alpha transparency of each individual point. If NULL, will plot all rows. |
... |
Additional arguments passed to |
Value
Either NULL if ggplot = FALSE
or a ggplot object if ggplot = TRUE
. In either case, plots the figure.
Examples
fwl_plot(mpg ~ hp + wt | cyl, mtcars)
[Package fwlplot version 0.3.0 Index]