Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggplotly setting graph size #106

Open
royfrancis opened this issue Apr 10, 2024 · 1 comment
Open

ggplotly setting graph size #106

royfrancis opened this issue Apr 10, 2024 · 1 comment

Comments

@royfrancis
Copy link

royfrancis commented Apr 10, 2024

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
Copy link
Author

royfrancis commented Apr 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant