popupArgs: Options for popup generation

Description Usage Arguments Value

View source: R/popup_args.R

Description

This function simply returns a list of options to control the generation of popups.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
popupArgs(
  showTitle = TRUE,
  showValues = TRUE,
  labels = NULL,
  supValues = NULL,
  supLabels = colnames(supValues),
  html = NULL,
  noPopup = FALSE,
  digits = NULL
)

Arguments

showTitle

If TRUE layer id is displayed as title of popups.

showValues

If TRUE, values are displayed in popups

labels

Names of values. If NULL, column names of the data bound to a chart are used.

supValues

A data.frame containing additional values to display in popups.

supLabels

Names of the additional values.

html

Character vector containing custom html code for popups. You can use this parameter when you are not happy with the default popups.

noPopup

If TRUE, popups are not created.

digits

Max number of decimal digits to display for numeric values. If NULL, all digits are displayed.

Value

List containing options for popup generation


leaflet.minicharts documentation built on May 11, 2021, 5:07 p.m.