Using ggplot and ggplotly together

Can you post a specific example of code and data that cause this problem? The best way to do that is as a Reproducible Example.