Skip to contents

This function creates a map visualizing the genotypic frequencies of a specified allele across counties within a given state. The frequencies are adjusted based on census data.

Usage

make_state_by_county_allele_frequency_map(state_name, query_allele)

Arguments

state_name

A string specifying the name of the state (e.g., 'Texas').

query_allele

A string specifying the allele to query (e.g., 'A*11:01').

Value

A list containing:

out_data

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

p1

A ggplot2 object representing the map of allele frequencies.

Examples

if (FALSE) { # \dontrun{
result <- make_state_by_county_allele_frequency_map(
  state_name = 'Texas',
  query_allele = 'A*11:01'
)
print(result$p1)  # To display the map
} # }