Description Usage Arguments Examples
Plot x3p object as an image
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | x3p_image(
x3p,
file = NULL,
col = "#cd7f32",
crosscut = NA,
ccParam = list(color = "#e6bf98", radius = 5),
size = c(750, 250),
zoom = 0.35,
multiply = 5,
update = FALSE,
...
)
image_x3p(
x3p,
file = NULL,
col = "#cd7f32",
crosscut = NA,
ccParam = list(color = "#e6bf98", radius = 5),
size = c(750, 250),
zoom = 0.35,
multiply = 5,
...
)
|
x3p |
x3p object |
file |
file name for saving, if file is NULL the opengl device stays open. The file extension determines the type of output. Possible extensions are png, stl (suitable for 3d printing), or svg. |
col |
color specification |
crosscut |
crosscut index |
ccParam |
list with named components, consisting of parameters for showing crosscuts: color and radius for crosscut region |
size |
vector of width and height |
zoom |
numeric value indicating the amount of zoom |
multiply |
exaggerate the relief by factor multiply |
update |
Boolean value indicating whether a scene should be updated (defaults to FALSE). If FALSE, a new rgl device is opened. |
... |
not used |
1 2 3 4 5 6 7 8 | ## Not run:
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
x3p_image(logoplus, size = c(741, 419), zoom=0.5)
# add crosscut:
logoplus <- x3p_add_hline(logo, yintercept = 50*.645e-6, color = "#e6bf98", size = 5)
x3p_image(logoplus, size = c(741, 419), zoom=0.5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.