ggplotly is not working

Hi Team,

I am getting the below error while installing the package install.packages("ggplotly"). I want to create the Interactive plot. I am using the R version 4.4. PFB error screenshot.

Can someone please help me in how to create the interactive plot.

ggplotly is a function within the plotly package rather than a package itself.

install.packages("plotly")
library(ggplot2)
library(plotly)

p <- ggplot()+
  geom_point (aes(x = 0, y = 0))

ggplotly(p)
1 Like

Hi @mduvekot , @nirgrahamuk ,

thanks for the reply. I am still getting the below error. PFB screenshot.

Could you please help us on this.

so try to install the missing yaml package.

Thanks @nirgrahamuk. It fixed the issue now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.