wgpolygondf: Plot long-frame polygons

Description Usage Arguments Value Examples

View source: R/webglobe.R

Description

Plot polygons defined by long-style data frame

Usage

1
2
wgpolygondf(df, fill = NA, alpha = 1, extrude_height = 0,
  stroke = "yellow", stroke_width = 10)

Arguments

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)

Value

A webglobe command

Examples

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)

webglobe documentation built on Sept. 16, 2020, 1:08 a.m.