Skip to content

Commit 16fe607

Browse files
committed
make sure function input to breaks work with manual scale
1 parent a74cb3e commit 16fe607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scale-manual.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ manual_scale <- function(aesthetic, values = NULL, breaks = waiver(), ...) {
132132

133133
# order values according to breaks
134134
if (is.vector(values) && is.null(names(values)) && !is.waive(breaks) &&
135-
!is.null(breaks)) {
135+
!is.null(breaks) && !is.function(breaks)) {
136136
if (length(breaks) <= length(values)) {
137137
names(values) <- breaks
138138
} else {

0 commit comments

Comments
 (0)