ps_polygons: Plot simple feature polygons on a sphere

Description Usage Arguments Examples

View source: R/ps_polygons.R

Description

Plot simple feature polygons on a sphere. Use ps_globe() first to plot the polygons on the globe

Usage

1
ps_polygons(sf_polygons, color = "black", alpha = 1, ...)

Arguments

sf_polygons

simple feature polygons or mutli-polygons

color

set color of the point(s)

alpha

set transparency of the point(s) 0 = transparent 1 = non-transparent

...

more parameters of rgl::material3d()

Examples

1
2
3
4
5
poly <- sf::st_polygon(list(rbind(c(0,23), c(3,21), c(15,32), c(26,12),
c(25,-33), c(42,-40), c(32,-54), c(10,-23), c(0,-23), c(0,23))))
poly <- sf::st_sfc(poly, crs = 4326)
ps_globe(alpha=0.4)
ps_polygons(poly, color = 'darkgreen')

lorenzomorning/plotsphere documentation built on Dec. 21, 2021, 11:48 a.m.