Skip to content

Commit 91b6ffd

Browse files
committed
fall back on empty string for NULL title. fixes #634.
1 parent fa93fd1 commit 91b6ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ ggplotly.ggmatrix <- function(p = ggplot2::last_plot(), width = NULL,
7979
subplotList <- c(subplotList, list(s))
8080
}
8181
s <- layout(subplot(subplotList, nrows = 1), width = width, height = height)
82-
if (nchar(p$title) > 0) {
82+
if (nchar(p$title %||% "") > 0) {
8383
s <- layout(s, title = p$title)
8484
}
8585
s

0 commit comments

Comments
 (0)