powered by
Convert country names to echarts format.
e_country_names(data, input, output, type = "iso2c", ...)e_country_names_(data, input, output = NULL, type = "iso2c", ...)
e_country_names_(data, input, output = NULL, type = "iso2c", ...)
Data.frame in which to find column names.
Input and output columns.
Passed to countrycode origin parameter.
origin
Any other parameter to pass to countrycode.
Taiwan and Hong Kong cannot be plotted.
cns <- data.frame(country = c("US", "BE")) # replace e_country_names(cns, country) # specify output e_country_names(cns, country, country_name)
Run the code above in your browser using DataLab