The same strategy extends to plot options that have incompatible data. In the following
layout block, the wrong variable name was used for the GROUP= option.
layout overlay;
barchart category=age / group=gender;
endlayout;
In the data, the column is named Sex, not Gender. This is not regarded as an error
condition—the bar chart is drawn without groups in this case.
Overlay Examples
After you become familiar with the plot statements GTL offers, you will see them as
basic components that can be stacked in many ways to form more complex plots. This
section shows you how to overlay statements and use other GTL features to create more
complex plots.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.