You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plotly cannot handle Inf or -Inf when plotting #2364
plotly does not seem to know what to do with values that are Inf or -Inf. The expected behavior (as done by ggplot2) is to map those values to the maximum and minimum values representable in the type when plotting but to not include them in calculations related to ranges, zooming, axis labels, grid lines, etc.
library(dplyr)
library(ggplot2)
# as expected, this extends the line up to limits of the plotp<-data.frame(x=c(1,1,Inf), y= c(Inf, 1, 1)) %>% ggplot(aes(x=x,y=y)) + geom_line()
p
library(plotly)
# This doesn't plot anything
ggplotly(p)
Activity
Fix Inf coordinate values causing shapes not to render (plotly#2364)
Merge pull request #1 from Chr96er/fix/inf-coordinate-values-2364