Skip to content

Commit

Permalink
CRAN 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Jan 28, 2025
1 parent bc8a6c2 commit 507b448
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
15 changes: 11 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ knitr::knit_hooks$set(output = function(x, options) {

## Installation

Installation of **tmap** (version 4) is straightforward:
Installation of **tmap** is straightforward:

```{r eval=FALSE}
install.packages("tmap")
```

For Linux and macOS users who are new to working with spatial data in R, this may fail since additional (non-R) libraries are required (which are automatically installed for Windows users).

### Development version

The development version

```{r eval=FALSE}
# install.packages("remotes")
Expand All @@ -66,9 +76,6 @@ pak::pak("r-tmap/tmap")
install.packages("tmap", repos = c("https://r-tmap.r-universe.dev", "https://cloud.r-project.org"))
```

The old version of **tmap** (version 3) is available on [![CRAN](https://www.r-pkg.org/badges/version/tmap)](https://cran.r-project.org/package=tmap), but we recommend to use version 4, which will be on CRAN soon.

For Linux and macOS users who are new to working with spatial data in R, this may fail since additional (non-R) libraries are required (which are automatically installed for Windows users).

**Windows**
No additional installation required.
Expand Down
28 changes: 17 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@ R-library for drawing charts.

## Installation

Installation of **tmap** (version 4) is straightforward:
Installation of **tmap** is straightforward:

``` r
install.packages("tmap")
```

For Linux and macOS users who are new to working with spatial data in R,
this may fail since additional (non-R) libraries are required (which are
automatically installed for Windows users).

### Development version

The development version

``` r
# install.packages("remotes")
Expand All @@ -37,14 +49,6 @@ pak::pak("r-tmap/tmap")
install.packages("tmap", repos = c("https://r-tmap.r-universe.dev", "https://cloud.r-project.org"))
```

The old version of **tmap** (version 3) is available on
[![CRAN](https://www.r-pkg.org/badges/version/tmap)](https://cran.r-project.org/package=tmap),
but we recommend to use version 4, which will be on CRAN soon.

For Linux and macOS users who are new to working with spatial data in R,
this may fail since additional (non-R) libraries are required (which are
automatically installed for Windows users).

**Windows** No additional installation required.

**Linux (Ubuntu)** See
Expand All @@ -64,9 +68,11 @@ Plot a World map of the happy planet index (HPI) per country. The object
``` r
tm_shape(World) +
tm_polygons(fill = "HPI")
#> [tip] Consider a suitable map projection, e.g. by adding `+ tm_crs("auto")`.
#> This message is displayed once per session.
```

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

This map can be enhanced in several ways. For instance:

Expand All @@ -80,7 +86,7 @@ tm_shape(World, crs = "+proj=robin") +
)
```

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

# Book chapter about tmap

Expand Down
Binary file modified 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 507b448

Please sign in to comment.