8000 doc: extending w/ ggplot2 · FRBCesab/chessboard@7a0a96e · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
doc: extending w/ ggplot2
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Sep 6, 2023
1 parent 243b0ba commit 7a0a96e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions vignettes/chessboard.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ matrix_to_edge_list(conn_matrix)
\


### Package `sf`
### with `sf`

As seen before, the edge list can be converted into an spatial object with the
function `edges_to_sf()`. The output is an `sf` `LINESTRING` that can be handled
Expand Down Expand Up @@ -632,31 +632,40 @@ sf::st_write(edges_sf, "edge_list.gpkg")
\


### Package `ggplot2`
### with `ggplot2`

...
All plotting functions in `chessboard` are produced with the `ggplot2` engine
and are highly customizable. For instance, let's change the default theme.


```{r 'change-theme', fig.height=8, fig.width=8, fig.cap="Figure 12. Connectivity matrix", out.width='80%'}
# Change default ggplot2 theme ----
gg_matrix(conn_matrix) +
theme_bw() +
theme(legend.position = "none")
```


\


### Package `igraph`
### with `igraph`

...


\


### Package `spdep`
### with `spdep`

...


\


### Package `adespatial`
### with `adespatial`

...

Expand Down

0 comments on commit 7a0a96e

Please sign in to comment.
0