ps_lines: Plot simple feature lines on a sphere

Description Usage Arguments Examples

View source: R/ps_lines.R

Description

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

Usage

1
ps_lines(sf_lines, color = "black", alpha = 1, ...)

Arguments

sf_lines

simple feature linestrings or mutli-linestrings

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_line <- sf::st_linestring(random_matrix)
random_line <- sf::st_sfc(random_line, crs = 4326)
ps_globe()
ps_lines(random_line, color = 'green')

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