propogate_data: Ensure each layer contains a data set

Description Usage Arguments

Description

propogate_data checks each layer for a data set. If none is found it assigns a copy of the plot level data set to the layer. propogate_data avoids the side effects of ggplot2:::map_layout, which performs a similar function.

Usage

1
  propogate_data(layers, plot_data)

Arguments

layers

ggplot2 layer objects

plot_data

the global data set for a ggplot2 plot


garrettgman/ggplyr documentation built on May 16, 2019, 5:38 p.m.