Skip to content

Commit 227ceb0

Browse files
committed
merge with master
2 parents af2c185 + 599312a commit 227ceb0

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Rapp.history
33
*.Rhistory
44
*.RData
55
*.Rproj.user
6+
.Rproj.user

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: plotly
22
Title: Create Interactive Web Graphics via Plotly's JavaScript Graphing Library
3-
Version: 2.2.1
3+
Version: 2.2.2
44
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
55
email = "cpsievert1@gmail.com"),
66
person("Chris", "Parmer", role = c("aut", "cph"),

NEWS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
2.2.1 -- 13 Jan 2015
1+
2.2.2 -- 18 Jan 2015
22

33
Fix bar orientation when we detect geom_bar() + coord_flip() in ggplotly(). Fixes #390.
44

5+
2.2.1 -- 18 Jan 2015
6+
7+
Search for axis title in scene object. fixes #393.
8+
59
2.2.0 -- 13 Jan 2015
610

711
The default for layout.hovermode is now 'closest' for non-line scatter traces

R/plotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ axis_titles <- function(x, l) {
449449
scene <- if (isTRUE(d$type %in% c("scatter3d", "surface"))) TRUE else FALSE
450450
for (i in c("x", "y", "z")) {
451451
ax <- paste0(i, "axis")
452-
t <- x$layout[[ax]]$title
452+
t <- x$layout[[ax]]$title %||% x$layout$scene[[ax]]$title
453453
if (is.null(t)) {
454454
idx <- which(names(argz) %in% i)
455455
if (length(idx)) {

0 commit comments

Comments
 (0)