
Last chance! 50% off unlimited learning
Sale ends in
writeASY(scene = scene3d(), title = "scene", outtype = c("pdf", "eps", "asy", "latex", "pdflatex"), prc = TRUE, runAsy = "asy %filename%", defaultFontsize = 12, width = 7, height = 7, ppi = 100, ids = NULL)
NULL
, write out just these
rgl objects.
The interactive scene produced with prc = TRUE
requires outtype = "pdf"
, and (as of this
writing) has a number of limitations:
scene3d
saves a copy of a scene to an R variable; writeWebGL
,
writePLY
, writeOBJ
and writeSTL
write the scene to a file in various other formats.
x <- rnorm(20)
y <- rnorm(20)
z <- rnorm(20)
plot3d(x, y, z, type = "s", col = "red")
setwd(tempdir())
writeASY(title = "interactive") # Produces interactive.pdf
writeASY(title = "noninteractive", prc = FALSE) # Produces noninteractive.pdf
Run the code above in your browser using DataLab