Skip to contents

Add a showSelected aesthetic if legend is specified

Usage

addShowSelectedForLegend(meta, legend, L)

Arguments

meta

meta object with all information

legend

legend to scan for showSelected

L

layer of the plot

Value

L : Layer with additional mapping to new aesthetic