Skip to content

Commit

Permalink
Update readme plots
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Oct 28, 2024
1 parent 0aa22fd commit c950499
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
10 changes: 6 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ plot_denmark()
```

```{r}
plot_regions(region = c("Region Nordjylland", "Region Midtjylland"))
region <- plot_regions(region = c("Region Nordjylland", "Region Midtjylland"))
```

```{r}
plot_municipalities(municipality = c("Aarhus", "Favrskov", "Vejle"))
municipality <- plot_municipalities(municipality = c("Aarhus", "Favrskov", "Vejle"))
```



```{r}
library(patchwork)
region + municipality
```
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,22 @@ plot_denmark()
<img src="man/figures/README-example-1.png" width="100%" />

``` r
plot_regions(region = c("Region Nordjylland", "Region Midtjylland"))
region <- plot_regions(region = c("Region Nordjylland", "Region Midtjylland"))
#> → Using cached response.
#> Change this behaviour by setting cache = FALSE
```

<img src="man/figures/README-unnamed-chunk-2-1.png" width="100%" />

``` r
plot_municipalities(municipality = c("Aarhus", "Favrskov", "Vejle"))
municipality <- plot_municipalities(municipality = c("Aarhus", "Favrskov", "Vejle"))
#> → Getting data on `kommuner`. This usually takes 13.13s.
#> Fetching data from the API. This will take some time.
#> Reading data to `st`.
#> Converting map data to `sf` object
```

<img src="man/figures/README-unnamed-chunk-3-1.png" width="100%" />
``` r
library(patchwork)
region + municipality
```

<img src="man/figures/README-unnamed-chunk-4-1.png" width="100%" />
Binary file added man/figures/README-unnamed-chunk-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c950499

Please sign in to comment.