Description Usage Arguments Value Examples
Plot polygons defined by long-style data frame
1 2 | wgpolygondf(df, fill = NA, alpha = 1, extrude_height = 0,
stroke = "yellow", stroke_width = 10)
|
df |
Data frame to plot |
fill |
Fill colour name |
alpha |
Alpha (transparency value) |
extrude_height |
Height of the polygon above the surrounding landscape, in TODO |
stroke |
Outline colour (TODO) |
stroke_width |
Outline width (TODO) |
A webglobe command
1 2 3 4 5 6 | ## Not run:
library(webglobe)
wg<-webglobe(immediate=TRUE)
wg+wgpolygondf(ggplot2::map_data("usa"),fill="blue",extrude_height=1000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.