Skip to contents

This function creates a map visualizing the genotypic frequencies of a specified HLA allele across census tracts within a given county. The frequencies are adjusted based on population data.

Usage

make_county_census_tract_allele_frequency_map(
  state_abbreviation,
  county_code,
  county_name,
  query_allele
)

Arguments

state_abbreviation

A 2-letter state abbreviation. E.g., 'TX'.

county_code

A 3-digit county code. E.g., '157'.

county_name

The name of the county. E.g., 'Fort Bend'.

query_allele

The HLA allele to query. E.g., 'A*11:01'.

Value

A list containing:

out_data

A data frame with processed allele frequency data for the specified county.

p1

A ggplot2 object representing the map of genotypic frequencies.

Examples

if (FALSE) { # \dontrun{
texus_fort_bend <- make_county_census_tract_allele_frequency_map(
  state_abbreviation = 'TX',
  query_allele = 'A*11:01',
  county_code = '157',
  county_name = 'Fort Bend'
)
} # }