Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

openairmaps (version 0.9.0)

quickTextHTML: Automatic text formatting for openairmaps

Description

Workhorse function that automatically applies routine text formatting to common pollutant names which may be used in the HTML widgets produced by openairmaps.

Usage

quickTextHTML(text)

Value

a character vector

Arguments

text

A character vector.

required

A character vector containing common pollutant names to be formatted. Commonly, this will insert super- and subscript HTML tags, e.g., "NO2" will be replaced with "NO2".

Author

Jack Davison.

Details

quickTextHTML() is routine formatting lookup table. It screens the supplied character vector text and automatically applies formatting to any recognised character sub-series to properly render in HTML.

See Also

openair::quickText(), useful for non-HTML/static maps and plots

Examples

Run this code
labs <- c("no2", "o3", "so2")
quickTextHTML(labs)

Run the code above in your browser using DataLab