Skip to contents

labs_acs_survey() uses acs_survey_label_table() to create a label for a ggplot2 plot passed to the caption parameter of ggplot2::labs().

Usage

labs_acs_survey(
  ...,
  caption = NULL,
  survey = "acs5",
  year = 2021,
  prefix = "Source: ",
  table = NULL
)

Arguments

...

Arguments passed on to ggplot2::labs

title

The text for the title.

subtitle

The text for the subtitle for the plot which will be displayed below the title.

tag

The text for the tag label which will be displayed at the top-left of the plot by default.

alt,alt_insight

Text used for the generation of alt-text for the plot. See get_alt_text for examples.

caption

The text for the caption which will be displayed in the bottom-right of the plot by default.

survey

ACS survey, "acs5", "acs3", or "acs1".

year

Based on the year and survey, acs_survey_ts() returns a vector of years for non-overlapping ACS samples to allow comparison.

prefix

Text to insert before ACS survey label.

table

One or more table IDs to include in label or source note.