
Add a layer to a pmx_vpc_plot with a facet warning
Source: R/pmx_vpc_plot_class.R
plus-.pmx_vpc_plot.RdS3 method for + applied to objects returned by plot_vpc_cont() and
plot_build_vpc(). Delegates to the standard ggplot2 + operation for all
layer types. When e2 is a ggplot2::facet_wrap() or ggplot2::facet_grid()
specification, a warning is issued because the VPC summary statistics are
pre-computed and will not reflect the added stratification.
Use strat_var in plot_vpc_cont() to stratify both statistics and panels.
The pmx_vpc_plot class is preserved on the result so that subsequent +
calls are also intercepted.