plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

Fixed typo - calculcations of shared Y axis was using X axes

Open okhoma opened this issue 5 years ago • 2 comments

okhoma avatar Sep 08 '20 10:09 okhoma

Thanks, do you have minimal example(s) that demonstrate the fix (better yet, can you add some unit test(s))?

cpsievert avatar Sep 08 '20 14:09 cpsievert

@cpsievert, Is it really just a copy/paste error. It's only effect, as far as I can tell, is a warning:

p <- lapply(c("A", "B", "C"), function(x) plot_ly(x = x, y = 1, type = "bar"))
subplot(subplot(p[[1]], p[[2]], shareY = TRUE), p[[3]], shareY = TRUE)
Warning message:
In seq_len(nrows * unique(xAxisN)) :
  first element used of 'length.out' argument

okhoma avatar Sep 17 '20 19:09 okhoma