A package that creates quilts for holographic images on the Looking Glass Device.
As of right now holor
supports the following functions:
plot3D::hist3D()
plot3D::scatter3D()
plot3D::persp3D()
devtools::install_github("DvP17/holor")
```{r example-quilts} library(holor)
quilt(plot3D::scatter3D(x = iris$Sepal.Length, y = iris$Petal.Length, z = iris$Sepal.Width), cone = 10, theta = 0, phi = 0, device = "LGP", file = "myquilt-scatter.png")
data("VADeaths") quilt(plot3D::hist3D(z = VADeaths), cone = 10, theta = 0, phi = 0, device = "LGP", file = "myquilt-hist.png")
quilt(plot3D::persp3D(z = volcano, shade = 0.3, col = gg.col(100)), cone = 10, theta = 5, phi = 40, device = "LGP", file = "myquilt-persp.png")
The `device` argument corresponds to the device you are using to display the hologram. The file name is automatically changed to include information on the parameters needed for HoloPlayStudio.
## Preview
You can preview the quilts by rendering a GIF file with the `preview_quilt()` function.
```{r example-preview}
# Scatter Plot
preview_quilt(file = "myquilt-persp_qs8x6.png", width = 2200)
Now you can export the quilt to HoloPlayStudio with drag & drop. Attached is an example of a scatter plot on the Looking Glass Portrait.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.