Skip to content

Commit

Permalink
rename attribute for original breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Oct 22, 2024
1 parent 7d9cb6f commit 5287a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/label-compose.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ compose_label <- function(..., call = caller_env()) {
orig <- x
for (labeller in label_list) {
x <- labeller(x)
attr(x, "orig") <- orig
attr(x, "orig_breaks") <- orig
}
x[is.na(orig)] <- NA
names(x) <- names(x) %||% names(orig)
Expand Down

0 comments on commit 5287a43

Please sign in to comment.