Skip to content

Commit

Permalink
fix key.lab for facet plots
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Nov 19, 2024
1 parent fd85151 commit a59020f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ kw_dflt = function(x, key.pos) {
plot.stars = function(x, y, ..., join_zlim = TRUE, main = make_label(x, 1), axes = FALSE,
downsample = TRUE, nbreaks = 11, breaks = "quantile", col = grey(1:(nbreaks-1)/nbreaks),
key.pos = get_key_pos(x, ...), key.width = kw_dflt(x, key.pos), key.length = 0.618,
key.lab = main, reset = TRUE, box_col = NA, center_time = FALSE, hook = NULL,
key.lab = ifelse(length(main) == 1, main, ""), reset = TRUE, box_col = NA, center_time = FALSE, hook = NULL,
mfrow = NULL, compact = TRUE) {

if (!missing(y))
Expand Down

0 comments on commit a59020f

Please sign in to comment.