Learn R Programming

animint2 (version 2025.1.28)

addShowSelectedForLegend: Add a showSelected aesthetic if legend is specified

Description

Add a showSelected aesthetic if legend is specified

Usage

addShowSelectedForLegend(meta, legend, L)

Value

L : Layer with additional mapping to new aesthetic

Arguments

meta

meta object with all information

legend

legend to scan for showSelected

L

layer of the plot