Can I recreate this polar coordinate spider chart in plotly?

后端 未结 3 1330
自闭症患者
自闭症患者 2021-02-04 06:18

I\'m having a bit of difficulty figuring out how to recreate the following graphic of a spider (or radar) chart, using plotly. Actually, I can\'t even recreate it in the most re

3条回答
  •  逝去的感伤
    2021-02-04 06:45

    As far as I can see you have already obtained your plot with ggplot2 (example picture ). If this is true the easiest think you should do to add plotly functionalities to your plot is running ggplotly() on your ggplot object , like within the example below:

    install.packages(c("ggplot2","plotly"))
    library(ggplot2)
    library(plotly)
    
    plot <- ggplot(data =mtcars, aes(x =  mpg, y = cyl))+
     geom_point()
    
    ggplotly (plot)
    

    which will result into the following interactive plot:

提交回复
热议问题