Skip to content

Commit

Permalink
tm_layout unnamed title message added
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Apr 25, 2024
1 parent ac555af commit 9c7c410
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions R/tm_layout.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ tm_layout = function(

) {
args = lapply(as.list(match.call()[-1]), eval, envir = parent.frame())
if (!missing(modes) && is.character(modes)) {
title = modes
args$modes = NULL
}

if (!is.null(title) || (!is.null(main.title))) {
title1 = if (!is.null(title)) {
title.args = args[substr(names(args), 1, 5) == "title"]
Expand Down
2 changes: 1 addition & 1 deletion examples/tm_symbols.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tm_shape(land) +
library(sf)
x = st_as_sf(cbind(expand.grid(x = -51:-47, y = 20:24), id = seq_len(25)), coords = c("x", "y"), crs = 4326)

tm_shape(x, bbox = bb(x, ext = 1.1)) +
tm_shape(x, bbox = bb(x, ext = 1.2)) +
tm_symbols(shape = "id",
size = 2,
lwd = 2,
Expand Down
2 changes: 1 addition & 1 deletion man/tm_symbols.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c7c410

Please sign in to comment.