visible Function (GPL)

Syntax

visible(<algebra>)

<algebra>. The name of a categorical variable.

Description

Controls the visibility of the graphic element, based on categories in a categorical variable. You can use this function in conjunction with the map function to hide specific categories of data. The specific constants for the visible aesthetic are visible.true and visible.false.

Examples

Figure 1. Example: Hiding categories
SCALE: cat(aesthetic(aesthetic.visible), map(("m", visible.false)))
ELEMENT: line(position(salbegin*salary), visible(gender))