-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/r-tmap/tmap
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ examples | |
demo | ||
test | ||
sandbox | ||
output | ||
^output$ | ||
local | ||
LICENSE | ||
README | ||
|
This file contains 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "Testing - Column Names" | ||
author: "Robin Lovelace" | ||
date: "`r Sys.Date()`" | ||
output: html_document | ||
editor_options: | ||
chunk_output_type: console | ||
--- | ||
|
||
```{r setup, include=FALSE} | ||
knitr::opts_chunk$set(echo = TRUE, fig.width = 9) | ||
``` | ||
|
||
# Instructions | ||
|
||
Open the tmap repository as RStudio project. | ||
Set Knit Directory (via drop-down menu of the Knit button in RStudio) to Project Directory. | ||
|
||
```{r echo=FALSE,message=FALSE,fig.height = 2} | ||
library(devtools) | ||
load_all() | ||
data(World,metro,land) | ||
World$`Unusual column name` = World$HPI | ||
# Test in v4 (2023-08-4): | ||
tm_shape(World) + | ||
tm_polygons("Unusual column name") | ||
# Error: Visual values used for the variable, "fill" of layer function "tm_polygons" are incorrect. | ||
# Test in v3: works! | ||
remotes::install_version("tmap", version = "3.3") | ||
detach("package:tmap", unload = TRUE) | ||
library(tmap) | ||
World$`Unusual column name` = World$HPI | ||
tm_shape(World) + | ||
tm_polygons("Unusual column name") | ||
``` |
This file contains 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