update_tootltip: Update tooltip in Shiny

Description Usage Arguments Examples

Description

Update tooltip in Shiny

Usage

1
2
update_tootltip(proxy, value = "<b>{name}</b><<scale_var>>",
  as_glue = TRUE, .na = "no data")

Arguments

proxy

A d3_map_proxy object.

value

A formula or a glue string matching columns in data.

as_glue

Use a glue string, if FALSE you can pass a character vector as tooltip.

.na

Value to replace NA values with (if value is a glue string). Use NULL to don't display tooltip if there is NAs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

if (interactive()) {



}


## End(Not run)

dreamRs/r2d3maps documentation built on May 25, 2019, 8:17 a.m.