Skip to contents

S3 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.

Usage

# S3 method for class 'pmx_vpc_plot'
e1 + e2

Arguments

e1

A pmx_vpc_plot object.

e2

A ggplot2 layer, scale, theme, facet, or other addable object.

Value

A pmx_vpc_plot object.