Skip to content

Commit 15b45ac

Browse files
committed
Merge pull request #314 from hadley/fix/guides
Guide axis: fix a conflict between #297 and #118.
2 parents 35a8122 + 73eebab commit 15b45ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

R/guides-axis.r

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
# @param range of data values
77
guide_axis <- function(at, labels, position="right", theme) {
88
position <- match.arg(position, c("top", "bottom", "right", "left"))
9+
10+
# Quick fix for conflicts #297 and #118
11+
# Previously, at = NA if there is no breaks (breaks = NA).
12+
# Fix for oob bug changed so that at = numeric(0) if there is no breaks.
13+
# Temporally, at is set as NA if there is no breaks.
14+
# see also SHA: f332070fca77399a84ea7a116e8c63f6990abaf6, SHA: 2ae13ad0a856c24cab6a69b523da0936ef7a94d8
15+
if (length(at) == 0) at <- NA
916

1017
at <- unit(at, "native")
1118
length <- theme$axis.ticks.length

0 commit comments

Comments
 (0)