plot3d: 3D object plot

Description Usage Arguments Value Examples

Description

3D object plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## S3 method for class 'SC'
plot3d(x, ..., add = FALSE)

## S3 method for class 'QUAD'
plot3d(x, ..., add = FALSE)

## S3 method for class 'PATH'
plot3d(x, ..., add = FALSE)

## S3 method for class 'sf'
plot3d(x, ..., add = FALSE)

## S3 method for class 'sfc'
plot3d(x, ..., add = FALSE)

## S3 method for class 'Spatial'
plot3d(x, ..., add = FALSE)

## S3 method for class 'trip'
plot3d(x, ..., add = FALSE)

## S3 method for class 'ARC'
plot3d(x, ..., add = FALSE)

## S3 method for class 'TRI'
plot3d(x, ..., add = FALSE)

Arguments

x

silicate model, SC, TRI, ARC, or PATH

...
add

Value

vertices and segment indices, invisibly

Examples

1
2
3
4
5
6
7
library(silicate)
x <- SC(sf::read_sf(system.file("shape", "nc.shp", package = "sf")) %>% 
   mutate(color_ = rainbow(100)))
plot3d(x); rglwidget()
worldz <- QUAD(gebco1)
## an easy way to exaggerate z is to reduce the radius of the globe
plot3d(globe(worldz, gproj = "+proj=geocent +a=10000"))

r-gris/trimesh documentation built on Oct. 13, 2018, 11:40 a.m.