plotly / plotly.r-docs

The documentation for Ploty's R graphing library.
9 stars 49 forks source link

ggplotly setting graph size #106

Open royfrancis opened 2 months ago

royfrancis commented 2 months ago

This page says setting graph size: https://github.com/plotly/plotly.r-docs/blob/master/ggplot2/2021-08-04-setting-graph-size.Rmd

but it has nothing to do with setting the graph size. Setting graph size is something like ggplotly(p,height=300,width=300), but I cannot find the documentation for this.

When I set a custom height as specified above in a quarto document, sometimes the plot doesn't show. It's just blank.

royfrancis commented 2 months ago

Found that this works a bit better. ggplotly(p) %>% layout(height=800). Including both seems to do weird things.