plotly / plotly.R

An interactive graphing library for R
https://plotly-r.com
Other
2.55k stars 625 forks source link

implement geom_GeomCurve #1684

Closed Courvoisier13 closed 4 years ago

Courvoisier13 commented 4 years ago

I am trying to do the correlation plot from the package corrr. When I tested ggplotly it said to request geom_GeomCurve() and geom_GeomTextRepel() to be implemented

mydata <- mtcars[, c('mpg', 'cyl', 'disp', 'hp', 'carb')]
library(corrr)
p = mydata %>% correlate() %>% network_plot(min_cor=0.6)
ggplotly(p)

gives a blank canvas with invisible dots and the warnings:

Warning messages: 1: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) : geom_GeomCurve() has yet to be implemented in plotly. If you'd like to see this geom implemented, Please open an issue with your example code at https://github.com/ropensci/plotly/issues 2: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) : geom_GeomTextRepel() has yet to be implemented in plotly. If you'd like to see this geom implemented, Please open an issue with your example code at https://github.com/ropensci/plotly/issues

vkartha commented 4 years ago

I have the same request, would love to see ggplotly work with geom_curv output (I receive the same warnings, and do not get any curves drawn on the resulting plots). Just need some hover over functionality to highlight annotations and features for each curve drawn.

cpsievert commented 4 years ago

Added to #566