Description Usage Arguments Value Side Effects See Also Examples
Plots roughly the outlines of those countries which have borders intersecting the current plot initialized by geoplot. The countries can also be filled.
1 2 3 4 |
regions |
Allows plotting only a certain part of the world to speed up the function, such as regions = "iceland". Default is plotting what is insidie the map. |
exact |
Draws a more exact plot. |
boundary |
If true country boundaries are drawn. Default is false. |
fill |
If true countries are filled with a color. Default is false. |
color |
Default is 1 (usually black). |
lwd |
Linewidth, default is 1. |
lty |
Linetype, default is 1. |
plot |
If false a plot is not drawn. Default is true. |
type |
If lines or points should be potted, see type for geoplot. |
pch |
The character to be used for plotting, see par. |
database |
The database the world plot is to be taken from. Currently there are two possible databases world and worldHires. world is in the map library and worlHires in the mapdata library and is much more precies. |
return.data |
If true those points used to make the in the plot are return, default is FALSE. Can be used to save the coastlines of specified countries. |
outside |
If TRUE data are plotted outside the borders. Default is FALSE. |
allowed.size |
Maximum size of polygon that can be filled. Default is 80 000 which is rather large polygon but this value is rapidly changing by more powerful hardware. |
default none, see option return data.
the outlines of all countries who intersect current plot are drawn.
geoplot
, fill.outside.border
,
geopolygon
, par
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run: geoplot(xlim = c(0, -53), ylim = c(53, 75))
geoworld()
# Should plot in all countries who intersect the plot draw
# with geoplot.
# The packages maps and mapdata need to be installed
# worldHires is a very detailed database of coastlines from the
# package mapdata. Could be problematic if used with fill = TRUE)
# Allowed.size is the maximum allowed size of polygons.
library(map) # world coastlines and programs
library(mapdata) # more detailed coastlines
geoplot(xlim = c(20, 70), ylim = c(15, 34))
geoworld(database = "worldHires", fill = TRUE, col = 30, allowed.size = 1e5)
geoplot(xlim = c(20, 70), ylim = c(15, 34), dlat = 10, dlon = 10)
geoworld(database = "world", fill = TRUE, col = 30) #
geoplot(xlim = c(-10, 70), ylim = c(71, 81), b0 = 80,
dlat = 2, dlon = 10) # 0 must be high here else
geoworld(database = "world", fill = TRUE, col = 30) #the plot fails.
# Lambert projection,
geoplot(xlim = c(-10, 70), ylim = c(71, 81),
dlat = 2, dlon = 10, projection = "Lambert")
geoworld(database = "world", fill = TRUE, col = 30)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.