ggplotly: log argument cancels axis labels

前端 未结 3 1624
無奈伤痛
無奈伤痛 2021-01-20 03:41

I just discovered the newish ggplotly function that makes ggplot2 graphs into interactive plotly visualizations. This is great. But I also ran into an odd effect, possibly a

3条回答
  •  一生所求
    2021-01-20 04:30

    Maybe this:

    gg <- ggplot(mtcars, aes(x=wt, y=mpg)) + 
      geom_point() + coord_trans(y="log10")
    ggplotly(gg) %>% layout(yaxis = list(type="log", autorange=TRUE))
    

提交回复
热议问题