Generate a State-Level Map of County Population-Corrected Genotypic Frequencies
Source:R/make_state_by_county_allele_frequency_map.R
make_state_by_county_allele_frequency_map.Rd
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.
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
} # }