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

Incorporate plot_ly() config arguments ? #2

Open
akarlinsky opened this issue Dec 6, 2019 · 1 comment
Open

Incorporate plot_ly() config arguments ? #2

akarlinsky opened this issue Dec 6, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@akarlinsky
Copy link

After playing with my alluvial plot, I would like to save it as a png. But the resulting image is very small (700 x 450). I would have liked to use plot_ly() config arguments (https://plotly-r.com/exporting-static-images.html) such as:
plot_ly() %>% config( toImageButtonOptions = list( format = "svg", filename = "myplot", width = 600, height = 700 ) )

But these have no effect on a paracats object... Could this be incorporated or an option to set the size of exports of paracts objects directly?

@erblast
Copy link
Owner

erblast commented Dec 7, 2019

yes so this does not work, because it is a different package, but you can use the the Rstudio export button in the viewer window to create any screenshot in a reasonable resolution that you like.
If you are looking for an automated solution you can use the package webshot which integrates well with knitr. You can find a detailed description here. If at one point the R plotly package will include the parcats trace, I might add a a wrapper for it to easyalluvial. But I do not think this would add much additional functionality besides it being easier to use for people that already know the plotly R package API.

@erblast erblast added the enhancement New feature or request label Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants