Skip to content
Snippets Groups Projects
Commit b9444b72 authored by Dennis Walvoort's avatar Dennis Walvoort
Browse files

replaced webgl by rgl to make vignette much smaller

parent 3703902d
Branches
Tags
No related merge requests found
--- ---
title: "Spatial Coverage Sampling with spcosa" title: "Spatial Coverage Sampling with spcosa"
author: "Dennis Walvoort" author: "Dennis Walvoort"
date: "2018-01-19" date: "2021-01-06"
output: output:
rmarkdown::html_vignette: rmarkdown::html_vignette:
toc: true toc: true
...@@ -15,7 +15,7 @@ vignette: > ...@@ -15,7 +15,7 @@ vignette: >
```{r, echo=FALSE} ```{r, echo=FALSE}
if (requireNamespace("rgl", quietly = TRUE)) { if (requireNamespace("rgl", quietly = TRUE)) {
knitr::knit_hooks$set(webgl = rgl::hook_webgl) knitr::knit_hooks$set(rgl = rgl::hook_rgl)
} }
knitr::opts_chunk$set(comment = NA) knitr::opts_chunk$set(comment = NA)
set.seed(314) set.seed(314)
...@@ -485,7 +485,7 @@ plot(strata) ...@@ -485,7 +485,7 @@ plot(strata)
plot(strata_crs) plot(strata_crs)
``` ```
Note that `grd` seems to have more compact strata near the geographic poles than `grd_crs`. However, the contrary is true. This becomes evident when both stratifications are projected on a sphere (use your mouse to interact with these spheres): Note that `grd` seems to have more compact strata near the geographic poles than `grd_crs`. However, the contrary is true. This becomes evident when both stratifications are projected on a sphere:
...@@ -539,7 +539,7 @@ function(x) { ...@@ -539,7 +539,7 @@ function(x) {
} }
``` ```
```{r, eval=requireNamespace("rgl", quietly = TRUE), echo=FALSE, results='hide', fig.width=5, fig.height=3, webgl=TRUE,dpi=72} ```{r, eval=requireNamespace("rgl", quietly = TRUE), echo=FALSE, results='hide', fig.width=7, fig.height=4, rgl=TRUE}
rgl::open3d(userMatrix = rbind( rgl::open3d(userMatrix = rbind(
c( 0.73, -0.63, 0.25, 0), c( 0.73, -0.63, 0.25, 0),
c( 0.37, 0.69, 0.63, 0), c( 0.37, 0.69, 0.63, 0),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment