Automatically plots the marginal relationship computed by
marg(). If ggplot2 is installed, it returns a ggplot object;
otherwise, it falls back to base R graphics.
Usage
# S3 method for class 'marg_adrm'
plot(x, rug_data = NULL, ...)Arguments
- x
An object of class
marg_adrm, usually the output ofmarg().- rug_data
An optional
data.framecontaining the original data to add a rug plot to the x-axis.- ...
Additional arguments passed to the underlying plotting functions.
