plot3d: 3D object plot

Description Usage Arguments Value Examples

Description

For SC edges are matched to their object/s. One object's properties is applied as colour. If color_ column is present on the data object table it is used.

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

rgl shape3d types (note that "segment3d" is currently an imaginary shape3d type)

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 Dec. 2, 2018, 4:20 a.m.