Tables and charts in Displayr come with default footers. These can be manually edited. However, a better approach is often to delete them (replace the text with a single space) and to create a separate, stand-alone footer. This post describes how to do this.
The standard footers (captions)
Most charts and tables in Displayr contain footers, like the one below. These automatically update when the data changes. They also support the following functionality:
- You can click into these and edit them.
- You can select all their contents and delete them.
- You can restore them to their default state using Appearance > Reset (Caption).
These footers are useful in quickly-created reports, but are less useful when you are wanting to create something more custom. They suffer from some limitations:
- If the underlying data is updated, changes may be lost.
- If the underlying data is updated, the footer may not update (e.g., if you have typed Base is 300, then this will be remembered even when the data changes).
- When you have multiple charts on a page, the information is repetitive, ugly, and uses up valuable screen real estate.
Adding a sample size description
An alternative is to:
- Click Insert > More > Data > Sample size description.
- In the Complete data variable field (shown on the right of your screen) select a variable. If you want to report the sample size for the entire data set, an ID variable is a good idea. Whatever variable is selected will be used to compute the sample size, based on all responses without missing values.
You will then get an output showing Base: total sample; sample size: 482. You can customize the wording and the formatting on the object inspector (in the right of the screen).
This will automatically update when you filter and weight the data. It can also be copied and pasted onto other pages.
For more information on how to customize these, please see How to Customize the Sample Size Description Widget.