| l_layer.Lines | R Documentation | 
Methods to plot map data defined in the sp
package
## S3 method for class 'Lines'
l_layer(widget, x, asSingleLayer = TRUE, ...)
| widget | widget widget path as a string or as an object handle | 
| x | an object defined in the  | 
| asSingleLayer | If  | 
| ... | arguments forwarded to the relative  | 
Note that currently loon does neither support holes and ring directions.
layer id
Applied Spatial Data Analysis with R by Bivand, Roger S. and Pebesma, Edzer and Gomez-Rubio and Virgilio
sp, l_layer
if (interactive()) {
if (requireNamespace("rworldmap", quietly = TRUE)) {
    world <- rworldmap::getMap(resolution = "coarse")
    p <- l_plot()
    lmap <- l_layer(p, world, asSingleLayer=TRUE)
    l_scaleto_world(p)
    attr(lmap,'hole')
    attr(lmap,'NAME')
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.