Learn R Programming

plotcli (version 0.2.0)

get_data_subset: Get data subset for a specific geom

Description

This function returns a subset of the data for a specific geom.

Usage

get_data_subset(geom_name, data, aes, p_build)

Value

A list containing the data subset for the specified geom.

Arguments

geom_name

The name of the geom for which the data subset is needed.

data

The data to be subsetted.

aes

The aesthetic mappings for the geom.

p_build

The ggplot build object.