live.map {covid19.analytics}R Documentation

function to map cases in an interactive map

Description

function to map cases in an interactive map

Usage

live.map(
  data = covid19.data(),
  select.projctn = TRUE,
  projctn = "orthographic",
  title = "",
  no.legend = FALSE,
  szRef = 0.2,
  fileName = NULL,
  interactive.display = TRUE
)

Arguments

data

data to be used

select.projctn

argument to activate or deactivate the pulldown menu for selecting the type of projection

projctn

initial type of map-projection to use, possible values are: "equirectangular" | "mercator" | "orthographic" | "natural earth" | "kavrayskiy7" | "miller" | "robinson" | "eckert4" | "azimuthal equal area" | "azimuthal equidistant" | "conic equal area" | "conic conformal" | "conic equidistant" | "gnomonic" | "stereographic" | "mollweide" | "hammer" | "transverse mercator" | "albers usa" | "winkel tripel" | "aitoff" | "sinusoidal"

title

a string with a title to add to the plot

no.legend

parameter to turn off or on the legend on the right with the list of countries

szRef

numerical value to use as reference, to scale up the size of the bubbles in the map, from 0 to 1 (smmaller value –> larger bubbles)

fileName

file where to save the HTML version of the interactive figure

interactive.display

boolean argument for enabling or not displaying the figure

Examples

## Not run: 
# retrieve aggregated data
data <- covid19.data("aggregated")
# interactive map of aggregated cases -- with more spatial resolution
live.map(data)

# interactive map of the time series data of the confirmed cases
# with less spatial resolution, ie. aggregated by country
live.map(covid19.data("ts-confirmed"))

## End(Not run)


[Package covid19.analytics version 2.1.3.3 Index]