Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when using EnhancedVolcano with plotly::ggplotly #114

Open
dy-lin opened this issue Jun 2, 2023 · 1 comment
Open

Errors when using EnhancedVolcano with plotly::ggplotly #114

dy-lin opened this issue Jun 2, 2023 · 1 comment

Comments

@dy-lin
Copy link

dy-lin commented Jun 2, 2023

I've verified that my plot is infact a ggplot object:

> class(p)
[1] "gg"     "ggplot"

Most ggplot objects can be made interactive by doing:

plotly::ggplotly(p)

However, I get these errors:

> plotly::ggplotly(p)
Error in unique.default(x) : unique() applies only to vectors
In addition: Warning messages:
1: `gather_()` was deprecated in tidyr 1.2.0.
Please use `gather()` instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. 
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
3: In if (robust_nchar(axisTitleText) > 0) { :
  the condition has length > 1 and only the first element will be used
4: In if (robust_nchar(axisTitleText) > 0) { :
  the condition has length > 1 and only the first element will be used

I'd like to not use ggrepel to label any points, and rather be able to hover over each point to see the gene, log fold change, and p-value using plotly.

@diyabasu97
Copy link

Hi,
By any chance did you get any solution this. I am also trying to use ggplotly on EnhancedVolcanoPlot but I am getting the below error:-
Error in if (robust_nchar(axisTitleText) > 0) { :
the condition has length > 1

It will be helpful if you are able to guide me this.

Regards,
Diya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants