Skip to content

Visualizations

Alexis Ambriz edited this page Aug 9, 2022 · 2 revisions

Using the data available gathered through either Epi or Genomic data functions, we can create informative visualizations that tell us a story about the spread of SARS-CoV-2 and the development of the virus.

Examples

Epi | Plot Cases By Location

Using the plot_cases_by_location, you can create plots of historical and recent trends in the amount of confirmed SARS-CoV-2 cases.


  • Required argument: location (a string or list of strings)
  • Optional argument: smoothed (Default True plots rolling averaged data)
  • Optional argument: past_num_days (If not None, filters data to past x num days.)

Returns: An altair plot.


state_list = ['USA_US-WA', 'USA_US-CA', 'USA_US-NY', 'USA_US-LA']

cases = outbreak_visualizations.plot_cases_by_location(state_list, past_num_days=76)

cases visualization

Clone this wiki locally