Skip to contents

API

Provide functions to assist API calls

gtl_hc_color_axis()
Return a list of color breaks for Higchart maps
gtl_hc_discrete_color_axis()
Return a list of color breaks for Higchart maps

Colors

Provide functions to make color axis for Highcharts.

gtl_chk_api_call()
Check API connexion
gtl_chk_idb_api_key()
Check IDB API key
gtl_chk_rnoaa_api_key()
Check NOAA API key
gtl_dwnl_api_json()
Download JSON response from API

Country codes and lists

Function related to country data.

gtl_admin_code()
Provide custom countrycode function
gtl_hmd_codes()
Provide HMD country codes
gtl_country_list_noaa()
NOAA country list
gtl_country_list_wb()
World Bank country list
gtl_swiss_canton_abbr()
Get Swiss canton abbreviations
gtl_swiss_canton_id()
Get Swiss canton FSO ids

Climates

Provide functions to determine climates. Currently only the Köppen climate dermination is provided.

gtl_koppen_code()
Determine the Köppen climate based on temperature, precipitation and the latitude.

Formatting and labels

Provide functions to format different elements (dates, scientific notation).

gtl_full_date()
Format full date
gtl_sci_10_html()
Format numbers using scientific notation for html
gtl_relabel_dash()
Reformat santoku chop dash labels

Projection

Provide functions for CRS projections

gtl_crs_proj()
Get a defined CRS definition for a given code
gtl_crs_regional()
Get a defined proj4 string for a given country
gtl_gis_tissot_indicatrix()
World Tissot Matrix

Options and language

Managing geotools options and language settings along with functions for providing translation strings.

gtl_options()
Set or get options for my package
gtl_opt_set_i18n()
Set language and country settings
gtl_opt_short_language()
Return short language code
gtl_opt_long_language()
Return long language name
gtl_translate_enfr()
Translate function
gtl_translator()
Creates translation function for named string list