plot_leaflet: Interactive hex map of RMAPI output

Description Usage Arguments

View source: R/plot.R

Description

Interactive hex map of RMAPI output.

Usage

1
2
3
4
5
6
7
8
plot_leaflet(
  proj,
  variable = NULL,
  fill_opacity = 0.8,
  legend_opacity = 1,
  map_type = 97,
  col_scale = viridisLite::magma(100)
)

Arguments

proj

object of class rmapi_project.

variable

which element of the project output to use as map colours.

fill_opacity

opacity of fill; 0 = fully transparent, 1 = fully opaque.

legend_opacity

opacity of legend; 0 = fully transparent, 1 = fully opaque.

map_type

an index from 1 to 137 indicating the type of base map. The map types are taken from leaflet::providers, see here for an interactive gallary.

col_scale

the colour scale to use.


mrc-ide/RMAPI documentation built on Feb. 11, 2020, 4:53 a.m.