Skip to content

Commit

Permalink
fixed bug (#996 nr1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Dec 18, 2024
1 parent 5a897ce commit df145da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions R/step1_rearrange.R
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ str2pos = function(x) {
} else {
stop("position: incorrect specification")
}
} else {
args = list(pos.h = x[1], pos.v = x[2])
}
do.call(tm_pos_in, args)
}
Expand Down
7 changes: 4 additions & 3 deletions R/tm_add_legend.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#' Map component: manual legend
#'
#' Map component that adds a manual legend
#' Map component that adds a manual legend.
#'
#' @param ... visual variables and arguments passed on to `tm_legend()`.
#' By default, the argument `type` is set to `"Symbols"`, which means that the
#' By default, the argument `type` is set to `"symbols"`, which means that the
#' supported visual variables are: `"fill"`, `"col"`, `"shape"`, `"size"`,
#' `"fill_alpha"`, `"col_alpha"`, `"lty"`, `"lwd"`, `"linejoin"`, and `"lineend"`.
#' @param labels labels
#' The number of legend items will be equal to the maximum number of specific values (and specified labels.)
#' @param labels labels by default `""` (so omitted)
#' @param type the layer type from which the visual variables (see `...`) are taken.
#' Options: `"symbols"` (default), `"lines"`, `"polygons"`, and `"text"`.
#' @param title text of the title
Expand Down
11 changes: 6 additions & 5 deletions man/tm_add_legend.Rd

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

0 comments on commit df145da

Please sign in to comment.