Learn R Programming

Rnightlights (version 0.2.4)

plotCtryWithTilesVIIRS: Plot a country boundary with the VIIRS tiles and world map

Description

Plot a country boundary as defined in the rworldmap package along with the VIIRS nightlight tiles for a visual inspection of the tiles required for download in order to process a country's nightlight data. Output corresponds to that of getCtryNlTiles()

It utilizes rworldmap::rwmgetISO3() to resolve country codes as well as names.

Usage

plotCtryWithTilesVIIRS(ctry)

Arguments

ctry

character the 3-letter ISO3 country code e.g. "KEN" or a common name of the country e.g. "Kenya" as found valid by rworldmap::rwmgetISO3()

Value

None

Examples

Run this code
# NOT RUN {
#by ctryCode
# }
# NOT RUN {
plotCtryWithTilesVIIRS("KEN")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab