hc_world_map_plot: highcharter World Map plot

Description Usage Arguments Value See Also Examples

View source: R/ggts_corona.R

Description

highcharter World Map plot

Usage

1
hc_world_map_plot(data, value, title = "Text")

Arguments

data

A data.frame object with data to chart. Code region and value are required.

value

A string value with the name of the variable to chart.

title

A string value with the title of the chart.

Value

highchart plot

See Also

Manual pages for highcharter https://rdrr.io/cran/highcharter/man/hc_add_series_map.html

https://rdrr.io/cran/highcharter/man/hc_xAxis.html

Highcharts CONFIGURATION OPTIONS https://api.highcharts.com/highcharts/title

Examples

1
2
3
4
5
6
7
last_date <- max(corona_data$Date)
data <- corona_data %>%
  dplyr::filter(Date == last_date & Case_Type == "Confirmed" &
                Country != "World")

data(worldgeojson, package = "highcharter")
hc_world_map_plot(data, value = "Population",  title = "World Population")

WoVollmer/pkgTS documentation built on June 2, 2021, 4:02 a.m.