File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ GuideAxis <- ggproto(
324
324
325
325
length <- elements $ ticks_length
326
326
spacer <- max(unit(0 , " pt" ), - 1 * length )
327
- labels <- do.call(unit.c , lapply(grobs $ label , measure ))
327
+ labels <- do.call(unit.c , lapply(grobs $ labels , measure ))
328
328
title <- measure(grobs $ title )
329
329
330
330
sizes <- unit.c(length , spacer , labels , title )
@@ -355,8 +355,8 @@ GuideAxis <- ggproto(
355
355
356
356
# Unlist the 'label' grobs
357
357
z <- if (params $ position == " left" ) c(2 , 1 , 3 ) else 1 : 3
358
- z <- rep(z , c(1 , length(grobs $ label ), 1 ))
359
- grobs <- c(list (grobs $ ticks ), grobs $ label , list (grobs $ title ))
358
+ z <- rep(z , c(1 , length(grobs $ labels ), 1 ))
359
+ grobs <- c(list (grobs $ ticks ), grobs $ labels , list (grobs $ title ))
360
360
361
361
# Initialise empty gtable
362
362
gt <- exec(
You can’t perform that action at this time.
0 commit comments