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 6d4ab43 commit 2d5b60a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/plot_central.R
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ NULL
colour_by <- paste0(summary_fun, "(", colour_by, ")")
}
}
browser()
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),
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 2d5b60a

Please sign in to comment.