Learn R Programming

webglobe (version 1.0.3)

wgpolygondf: Plot long-frame polygons

Description

Plot polygons defined by long-style data frame

Usage

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

Run this code
# NOT RUN {
library(webglobe)
wg<-webglobe(immediate=TRUE)
wg+wgpolygondf(ggplot2::map_data("usa"),fill="blue",extrude_height=1000)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab