这是indexloc提供的服务,不要输入任何密码
Skip to content

fix typos in vignettes #1107

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
merged 3 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vignettes/adv_options.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ library(lobstr)
tree(opt)
```

## Mode specific options
## Mode-specific options

Note that the first option, called `"modes"` is not really an option, but rather a list of mode-specific options, where the first subitem of each item is the name of that mode. Here, the technical rather than the user interface mode names are used: `"Grid"` for the `"plot"` mode and `"Leaflet"` for the `"view"` mode. The other subitems are either totally new options, or standard options (also listed further below) but with different defaults.

Expand All @@ -83,7 +83,7 @@ tree(tmap_options_mode("view", mode.specific = FALSE))

This last method is used internally throughout tmap. It takes both the mode and the style into account.

## Style specific options
## Style-specific options

Let's enable a certain style, say `"cobalt"`

Expand All @@ -101,9 +101,9 @@ tree(tmap_options_diff())

All options with the name prefix `value(s)` refer to default values for visual variables/values. E.g. `value.const` and subitem `fill.polygons` is the default polygon fill color.

The options `scales.var` specifies which scale are used by default to map data variables to visual variables. This depends on the visual variable and the data type. E.g. for numeric data ("num") and the visual variable `size`, the `continuous` scale is used, so `tm_scale_continuous()`. For the visual variable `text` (of `tm_text()`) the scale `asis` is used, so `tm_scale_asis()`.
The `scales.var` options specify which scales are used by default to map data variables to visual variables. This depends on the visual variable and the data type. E.g. for numeric data ("num") and the visual variable `size`, the `continuous` scale is used, so `tm_scale_continuous()`. For the visual variable `text` (of `tm_text()`) the scale `asis` is used, so `tm_scale_asis()`.

There are several options that deal with the margins and aspect ratio. These are explained in [another vigette](https://r-tmap.github.io/tmap/articles/adv_margins).
There are several options that deal with the margins and aspect ratio. These are explained in [another vignette](https://r-tmap.github.io/tmap/articles/adv_margins).

Most other options are default values of arguments of component functions. E.g., `compass.type` specifies the default compass type.

Expand Down
2 changes: 1 addition & 1 deletion vignettes/ext_glyphs.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "tmap extensions: tmap.mapgl"
title: "tmap extensions: tmap.glyphs"
output:
bookdown::html_vignette2:
bibliography: '`r system.file("tmap.bib", package="tmap")`'
Expand Down
2 changes: 1 addition & 1 deletion vignettes/ext_mapgl.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tmap_options(scale = 0.75)

There are two modes included in **tmap**: `"plot"` for static mapping and `"view"` for interactive mapping. See [introduction](https://r-tmap.github.io/tmap/articles/basics_modes). The `"view"` mode uses the JavaScript library Leaflet as backend.

The extension package [**tmap.mapgl**](https://r-tmap.github.io/tmap.mapgl/) offers two new modes which are also interactive: `"mapbox"` and `"maplibre"` which use the JavaScript libraries Mapbox GL and Maplibre GL respectively. An API key is requires to use `"mapbox"` (free for personal use), but `"maplibre"` is (as the name suggestions) free for any use.
The extension package [**tmap.mapgl**](https://r-tmap.github.io/tmap.mapgl/) offers two new modes which are also interactive: `"mapbox"` and `"maplibre"` which use the JavaScript libraries Mapbox GL and Maplibre GL respectively. An API key is required to use `"mapbox"` (free for personal use), but `"maplibre"` is (as the name suggests) free for any use.

Note that *tmap.mapgl* is a bridge between the R packages *mapgl* and *tmap*. It makes the functionality of *mapgl* (making the JavaScript libraries available to R) also available via the *tmap* user interface.

Expand Down
Loading