Skip to contents

Create map.

Usage

draw_map(
  x,
  values = NULL,
  breaks = NULL,
  bg_level = "province",
  bg_bound = "county",
  bg_cols = c("lightgray", "white"),
  h_type = "",
  h_cols = c("white", "darkred"),
  label = FALSE,
  label_size = 2,
  legend = FALSE,
  legend_title = "Incidence"
)

Arguments

x

Areacodes.

values

values.

breaks

Cutoff values.

bg_level

Province or city

bg_bound

Show bound of background map.

bg_cols

background colors.

h_type

map type.

h_cols

highlight colors.

label

Logical value.

label_size

size of label

legend

Logical value.

legend_title

Title of legend.

Value

A map