-
Notifications
You must be signed in to change notification settings - Fork 125
Adds resources urls to README (closes #803) #1049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
coverage](https://codecov.io/gh/r-tmap/tmap/branch/master/graph/badge.svg)](https://app.codecov.io/gh/r-tmap/tmap?branch=master) | ||
[](https://cran.r-project.org/package=tmap) | ||
[](https://cran.r-project.org/web/checks/check_results_tmap.html) | ||
[](https://www.r-pkg.org/pkg/tmap) | ||
checks](https://cranchecks.info/badges/worst/tmap)](https://cran.r-project.org/web/checks/check_results_tmap.html) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link to CRAN checks was correct (https://badges.cranchecks.info/worst/tmap.svg). After this change it doesn't work. |
||
[](https://www.r-pkg.org:443/pkg/tmap) | ||
[](https://www.gnu.org/licenses/gpl-3.0.html) | ||
[](https://r-tmap.r-universe.dev/tmap) | ||
<!-- badges: end --> | ||
|
@@ -23,33 +23,28 @@ R-library for drawing charts. | |
|
||
## Installation | ||
|
||
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 can be installed from the GitHub repository | ||
using `remotes` or `pak` packages or from the [R-universe | ||
repository](https://r-tmap.r-universe.dev/tmap). | ||
Installation of **tmap** (version 4) is straightforward: | ||
|
||
``` r | ||
# install.packages("remotes") | ||
remotes::install_github("r-tmap/tmap") | ||
|
||
# On Linux, with pak | ||
# install.packages("pak") | ||
pak::pak("r-tmap/tmap") | ||
|
||
# Or from R-universe | ||
# Or from r-universe | ||
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 | ||
[](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 | ||
|
@@ -60,11 +55,11 @@ Please address installation issues in this | |
**macOS** See <https://www.kyngchaos.com/>. Please address installation | ||
issues in this [issue](https://github.com/r-tmap/tmap/issues/149). | ||
|
||
# Getting started | ||
## Getting started | ||
|
||
Plot a World map of the happy planet index (HPI) per country. The object | ||
`World` is an example spatial data frame (`sf`) object that is contained | ||
in **tmap**: | ||
`World` is an example spatial data (`sf`) object that is contained in | ||
**tmap**: | ||
|
||
``` r | ||
tm_shape(World) + | ||
|
@@ -73,7 +68,7 @@ tm_shape(World) + | |
#> This message is displayed once per session. | ||
``` | ||
|
||
<img src="man/figures/README-unnamed-chunk-4-1.png" width="100%" /> | ||
<img src="man/figures/README-unnamed-chunk-3-1.png" width="100%" /> | ||
|
||
This map can be enhanced in several ways. For instance: | ||
|
||
|
@@ -87,10 +82,22 @@ tm_shape(World, crs = "+proj=robin") + | |
) | ||
``` | ||
|
||
<img src="man/figures/README-unnamed-chunk-5-1.png" width="100%" /> | ||
<img src="man/figures/README-unnamed-chunk-4-1.png" width="100%" /> | ||
|
||
## Additional Resources for Learning **tmap** | ||
|
||
For more in-depth learning on the **tmap** package, refer to the | ||
following resources: | ||
|
||
# Book chapter about tmap | ||
- **Book Chapter:** [Geocomputation with R](https://r.geocompx.org/) | ||
includes a chapter on [Making Maps with | ||
R](https://r.geocompx.org/adv-map), which covers **tmap**. | ||
- **Official Vignettes:** A collection of vignettes at | ||
[r-tmap.github.io](https://r-tmap.github.io/tmap/articles/) covers | ||
both basic and advanced topics with examples. | ||
- **Work-in-Progress Book:** *Elegant and Informative Maps with tmap* is | ||
an upcoming book available at | ||
[tmap.geocompx.org](https://tmap.geocompx.org/). | ||
|
||
The book [Geocomputation with R](https://r.geocompx.org/) provides a | ||
chapter on [Making maps with R](https://r.geocompx.org/adv-map), | ||
including a section on **tmap**. | ||
These resources provide a solid foundation for working with **tmap** in | ||
R. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version 4.0 is already on CRAN, isn't it? Older versions are now available in the CRAN archive.
Maybe this will be better: "The old version of tmap (version 3) is available in the CRAN archive. We recommend moving to the new version 4.0, which is available on CRAN."