Skip to content

Commit

Permalink
Attempt to make fill and colour match
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Jun 4, 2024
1 parent 096e367 commit b79c45b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/plot_central.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ NULL
}
}
plot_out <- .resolve_plot_colours(
plot_out, object$colour_by, colour_by, fill = point_out$fill,
colour = !point_out$fill, do_bin = !is.null(bins)
plot_out, object$colour_by, colour_by, fill = !is.null(fill_by) || point_out$fill,
colour = !is.null(colour_by), do_bin = !is.null(bins)
)
}

Expand Down
1 change: 0 additions & 1 deletion R/plot_colours.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
}
# Picking whether to fill or not.
aesthetics <- c("fill", "colour")[c(fill, colour)]

if (fill) {
VIRIDFUN <- scale_fill_viridis
SCALEFUN <- scale_fill_manual
Expand Down

0 comments on commit b79c45b

Please sign in to comment.