getmap: getmap

Description Usage Arguments Examples

View source: R/functions.R

Description

Downloads a map of a specific age or a list of maps of specific ages from a model specified by the user. Available models and ages can be found at https://github.com/GPlates/gplates_web_service_doc/wiki/Reconstruction-Models.

Usage

1
2
3
4
getmap(ma, model = "SETON2012", show.plates = FALSE, 
                  save.as = NULL, colland = "#66666660", 
                  colsea = "#00509010", 
                  do.plot = TRUE, ...)

Arguments

ma

numeric. Age in ma(million years ago). Can also be a vector of ages (vector of numeric age values).

model

character. The model the map should be created with. "SETON2012" (default), "MULLER2016", "GOLONKA", "PALEOMAP" or "MATTHEWS2016".

show.plates

boolean. If the user wants to get the continental plate borders or not. By default show.plates = FALSE.

save.as

character. The format the plots should be saved. "tiff", "pdf", "jpeg" or "png". By default save.as = NULL, plots are only shown and are not automatically saved as a file.

colland

character. The color of the land masses. By default colland = "#66666660".

colsea

character. The color of the sea. By default colsea = "#00509010".

do.plot

logical. If a plot of the map is created or not. By default do.plot = TRUE.

...

Graphical parameters. Any argument that can be passed to image.plot and to plot, such as main = "my own title" or main.col = "red".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 

library(mapast)

#with continental plates
map <- getmap(ma = 100, model = "SETON2012", show.plates = T)
coastlines <- map[[1]][[1]]
plates <- map[[2]][[1]]

#without continental plates
coastline <- getmap(ma = 100, model = "SETON2012")

#save map directly as pdf
getmap(ma = 100, model = "SETON2012", save.as="pdf")

#save multiple maps in one pdf
pdf("getmap_multi.pdf")
par(mfrow = c(2, 1))
getmap(ma = c(1, 2))
dev.off()
par(mfrow = c(1, 1))


## End(Not run)

macroecology/paleoMap documentation built on March 2, 2020, 1:47 p.m.