Skip to content

Commit f800c12

Browse files
committed
Fix annotations for facet_grid()
1 parent f5684fd commit f800c12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/ggplotly.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ gg2list <- function(p){
527527
yanchor="top")
528528
nann <- nann + 1
529529
}
530-
530+
}
531531
# axes titles
532532
annotations[[nann]] <- make.label(xaxis.title,
533533
0.5,
@@ -538,9 +538,7 @@ gg2list <- function(p){
538538
-outer.margin,
539539
0.5,
540540
textangle=-90)
541-
542-
layout$annotations <- annotations
543-
}
541+
layout$annotations <- annotations
544542
}
545543

546544
# Remove legend if theme has no legend position

0 commit comments

Comments
 (0)