This article describes how to go from a table containing multiple variables:
To a state where you display the table in a stacked area visualization that totals 100%:
A 100% Stacked Area chart rescales the values of each series so that they all add up to 100%, presenting the values as a proportion of the whole.
Requirements
- A Displayr document with a data set
Method - Use an existing table
- Select the multiway table or crosstab.
- From the object inspector
, click Visualization > Area > Stacked Area 100%.
Method - Create an empty visualization and hook the data up
- Create a Page in your document by clicking + > Page in the Report tree.
- From the toolbar, go to Visualization
> Area > Stacked Area 100%.
- Click on the page to place the visualization.
- From the object Inspector
, go to Data > Data Source and use one of the following options:
- Data - select a table output.
- Variables - select an individual variable from the Data Sources tree. Once an item is selected, a second drop-down called Groups will appear in the object inspector. Here, you can select a second variable to create a crosstab. See the caveats if you use this method.
- OPTIONAL: You can make further adjustments to the appearance via the Chart tab in the object inspector
.
Note
Note that when there are missing values inside the series (i.e., not at the ends of the series) are present, lines are shown along the edge of an Area Chart, with missing segments between points indicating missing values. Stacked Area Charts cannot be plotted with missing values.
UPCOMING WEBINAR: The Roadmap for Market Researchers in the Age of AI