Learn R Programming

geo (version 1.4-3)

fill.outside.border: Fills space outside the border of a plot.

Description

When programs like geopolygon are used they sometimes fills space outside the border of their plots, to refill that space white we use fill.outside.border.

Usage

fill.outside.border(col = 0, rat = 1)

Arguments

col
The color of the fill, default is 0 (usually white).
rat
Ratio between the size of the current plot and the size of the fill, if you want to allow the program to draw 5% outside the plot you set rat =1.05. Default rat = 1.

Value

No Value.

Side Effects

Fill outside of the border of the current plot.

See Also

geoworld, geopolygon.

Examples

Run this code
## Not run: 
# 	geoplot(xlim=c(-50,20),ylim=c(50,70))       # Initialize plot.
#        geoworld(fill=T,color=120)                  # Colour countries.
#        fill.outside.border()                       # Clear outside of border.
#        geoplot(xlim=c(-50,20),ylim=c(50,70),new=T) # Relabel.
# ## End(Not run)

Run the code above in your browser using DataLab