There are a number of geographic entities you can use in geographic maps in Displayr. Unfortunately, you may not know in advance which ones are available or how to spell them. This article provides you with the code you need to access a complete list of the geographic entities you can use in your maps.
Method
- From the toolbar, click Calculation
> Custom Code.
- Click on the Page to place the output.
- Paste the code below into the code editor, then Calculate the output.
For an exhaustive list of geographic entities available, use the following R code examples. Each line from line 2 on will give you different things. For example, edit the country name to get the relevant information for that country.
library(flipStandardCharts)
CountriesOrContinents("country") # list the countries of the world
CountriesOrContinents("continent") # list the continents
StatesInCountry("Italy") # list the states in a country
ZipcodesInCountry("UK") # list the zip/post codes in a country
AreasInCountry("Australia") # list the areas in a countryFor example, you would use the following code for a complete list of countries in the world:
library(flipStandardCharts)
CountriesOrContinents("country") # list the continentsA portion of the output is shown below:
UPCOMING WEBINAR: 10 Market Research Predictions Over the Next 4 Years