Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Jan 9, 2025
1 parent a657e90 commit 598f64a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion vignettes/adv_extensions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ As a proof of concept we created [`tmap.deckgl`](https://github.com/r-tmap/tmap.
For this proof of concept, only one map layer is `tm_polygons()`. The shiny integration does not work yet.

```{r}
library(tamp.deckgl)
library(tmap.deckgl)
```


```{r}
tmap_mode("deck")
tm_shape(NLD_dist) +
tm_polygons(
Expand Down
6 changes: 3 additions & 3 deletions vignettes/adv_multivariate.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tm_shape(NLD_muni) +
Or the first 3 variables:

```{r}
tm_shape(NLD_muni, fig.height = 5) +
tm_shape(NLD_muni, fig.height = 8) +
tm_polygons(
fill = tm_vars(n = 3))
```
Expand All @@ -107,7 +107,7 @@ tif = system.file("tif/L7_ETMs.tif", package = "stars")

Note that the channels are included in the dimenison `"band"`. We can use the argument `dimvalues` to select them:

```{r}
```{r, fig.height = 6}
tm_shape(L7) +
tm_rgb(col = tm_vars(dimvalues = 3:1, multivariate = TRUE))
```
Expand All @@ -120,7 +120,7 @@ Alternatively, we can split the `stars` object:

and plot it like this:

```{r}
```{r, fig.height = 6}
tm_shape(L7split) +
tm_rgb(col = tm_vars(3:1, multivariate = TRUE))
```
Expand Down

0 comments on commit 598f64a

Please sign in to comment.