spine_data_check: Check function for multiple values for an area in an...

Description Usage Arguments

View source: R/spine_chart_utils.R

Description

Check function for multiple values for an area in an indicator for spine chart

Usage

1
spine_data_check(data, indicator, area_code)

Arguments

data

a data frame to create the spine chart from. the data frame should contain data for all area types included in the chart (eg, if plotting for County & UA with a comparator of region and a median line for national, the data frame should contain all of these data)

indicator

unquoted field name of the field containing the indicator labels. Take care as errors will occur where indicator labels are the same but data exist for multiple sub-categories (for example, sex or age)

area_code

unquoted field name where area codes are stored (local_area_code, median_line_area_code and comparator_area_code, if using, should all exist in this field)


fingertipscharts documentation built on July 2, 2020, 2:59 a.m.