ps_points: Plot simple feature points on a sphere

Description Usage Arguments Examples

View source: R/ps_points.R

Description

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

Usage

1
ps_points(sf_points, color = "black", alpha = 1, ...)

Arguments

sf_points

simple feature point or multi-points

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
random_matrix <- matrix(c(runif(30, -90, 90), runif(30, -180, 180)), nrow=10, ncol=2)
random_points <- sf::st_multipoint(random_matrix)
random_points <- sf::st_sfc(random_points, crs = 4326)
ps_globe()
ps_points(random_points, color='red', alpha=0.8)

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