lflt_bubbles_GlnGltCat: Bubbles chart Gln Glt Cat

View source: R/bubbles_GlnGltCatNum.R

lflt_bubbles_GlnGltCatR Documentation

Bubbles chart Gln Glt Cat

Description

lflt_bubbles_GlnGltCat() Create a Leaflet bubbles map based on a particular data type. In this case, you can load data with four columns, where the firts column contains longitudes points, the second latitudes points and the third is a categorical column, or you must be sure that the first four columns of your data meet these rule.

Usage

lflt_bubbles_GlnGltCat(data = NULL, ...)

Ftype

Gln-Glt-Cat

Examples

data <- sample_data("Gln-Glt-Cat", n = 30)
lflt_bubbles_GlnGltCat(data)

# if you want to calculate the average instead of the sum, you can use agg inside a function
lflt_bubbles_GlnGltCat(data,
                       agg = "mean")

# data with more of one column
data <- sample_data("Gln-Glt-Cat-Dat-Yea-Cat", n = 30)
lflt_bubbles_GlnGltCat(data)

# Change variable to color and pallete type
lflt_bubbles_GlnGltCat(data,
                       color_by = names(data)[3],
                       palette_type = "sequential")

# Change tooltip info and add additional information contained in your data
names_data <- names(data)
info_tool <- paste0("<b>",names_data[1],":</b> {", names_data[1],"}<br/><b>", names_data[4],":</b> {", names_data[4],"}<br/>")
data %>%
 lflt_bubbles_GlnGltCat(tooltip = info_tool)

randommonkey/lfltmagic documentation built on Feb. 19, 2023, 3:53 a.m.