Skip to content

Commit

Permalink
Merge branch 'main' of github.com:geocompx/geocompr
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowosad committed Aug 24, 2023
2 parents 5bfd579 + e15d944 commit a5bbd08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 08-read-write-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ tm1 = tm_shape(tanzania) +
tm_text(text = "name_long") +
tm_scalebar(c(0, 200, 400), position = c("left", "bottom")) +
tm_title("A. query")
tanzania_neigh[tanzania_neigh$iso_a2 == "CD", "name_long"] = "Democratic\nRepublic\nof the ongo"
tanzania_neigh[tanzania_neigh$iso_a2 == "CD", "name_long"] = "Democratic\nRepublic\nof the Congo"
tm2 = tm_shape(tanzania_neigh) +
tm_polygons() +
tm_text(text = "name_long",
Expand Down
4 changes: 2 additions & 2 deletions 09-mapping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Maps have been used for several thousand years for a wide variety of purposes.
Historic examples include maps of buildings and land ownership in the Old Babylonian dynasty more than 3000 years ago and Ptolemy's world map in his masterpiece *Geography* nearly 2000 years ago [@talbert_ancient_2014].

Map making has historically been an activity undertaken only by, or on behalf of, the elite.
This has changed with the emergence of open source mapping software such as the R package **tmap** and the 'print composer' in QGIS\index{QGIS} which enable anyone to make high-quality maps, enabling 'citizen science'.
This has changed with the emergence of open source mapping software such as the R package **tmap** and the 'print layout' in QGIS\index{QGIS} which enable anyone to make high-quality maps, enabling 'citizen science'.
Maps are also often the best way to present the findings of geocomputational research in a way that is accessible.
Map making is therefore a critical part of geocomputation\index{geocomputation} and its emphasis not only on describing, but also *changing* the world.

Expand Down Expand Up @@ -315,7 +315,7 @@ tm_shape(nz) + tm_symbols(size = "Land_area", size.scale = tm_scale_intervals())

\index{tmap (package)!interval scale}
The `tm_scale_intervals()` function splits the input data values into a set of intervals.
In addition to manually setting `breaks, ` **tmap** allows users to specify algorithms to create breaks with the `style` argument automatically.
In addition to manually setting `breaks`, **tmap** allows users to specify algorithms to create breaks with the `style` argument automatically.
Here are some of the most useful scale functions (Figure \@ref(fig:break-styles)):

- `style = "pretty"`: the default setting, rounds breaks into whole numbers where possible and spaces them evenly
Expand Down

0 comments on commit a5bbd08

Please sign in to comment.