Skip to content

Commit

Permalink
fixed examples #819
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Jul 23, 2024
1 parent 75c14e3 commit d302928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/step1_helper_facets.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ step1_rearrange_facets = function(tmo, o) {

} else {
split_stars_dim = ""
if (length(value) && is.na(value[[1]][1])) {
if (length(value) && is.na(value[[1]][1]) && !inherits(value, c("tmapMVShpVars", "tmapShpVars"))) {
# NA -> value.blank
value = tmapVars(getAesOption("value.blank", o, aes = aes, layer = layer))
}
Expand Down
4 changes: 2 additions & 2 deletions R/tm_layers_rgb.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ opt_tm_rgb = function(interpolate = FALSE) {
#' @param options options passed on to the corresponding `opt_<layer_function>` function
#' @example ./examples/tm_rgb.R
#' @export
tm_rgb = function(col = tm_mv_shape_vars(3),
tm_rgb = function(col = tm_mv_shape_vars(n = 3),
col.scale = tm_scale_rgb(),
col.legend = tm_legend(),
col.chart = tm_chart_none(),
Expand All @@ -26,7 +26,7 @@ tm_rgb = function(col = tm_mv_shape_vars(3),

#' @rdname tm_rgb
#' @export
tm_rgba = function(col = tm_mv_shape_vars(4),
tm_rgba = function(col = tm_mv_shape_vars(n = 4),
col.scale = tm_scale_rgba(),
col.legend = tm_legend(),
col.chart = tm_chart_none(),
Expand Down

0 comments on commit d302928

Please sign in to comment.