plot_pop_density_with_linear_model: Plot Correlation Between Population Density and STI

Description Usage Value Warning See Also Examples

View source: R/population_density.R

Description

Utilizes a scatter plot to display the data provided by get_pop_density_with_sti. The plot has the population density on the x axis and the average STI on the y axis. Additionally, a linear model is fit to the data, to visualize a possible correlation.

Usage

1

Value

A plot which contains the average STI over the pandemic with the population density of the district

Warning

When calling this function with the paramater "all" (the default paramater), the results may take a while, because this is a very expensive computation.

See Also

Other population density and STI: get_pop_density_with_sti()

Examples

1
get_pop_density_with_sti(regions=c(8221, "Mannheim"))

slausmeister/revolution documentation built on Dec. 23, 2021, 3:24 a.m.