ABSTRACT

Any plotly object can be saved as a static image via the orca() function. To use it, you’ll need the orca command-line utility (CLI). This CLI can be installed via node.js, conda, or a standalone binary from https://github.com/plotly/orca/releases . Figure 11.1 demonstrates how orca()can generate a SVG (or PDF) that can then be imported into Adobe Illustrator for post-processing. Although it’s a nice option to have, importing into Adobe Illustrator might not enable as nice of a workflow as using plotly’s native support for editable layout components in the browser, then exporting to SVG/PDF (as shown in Figure 12.1). Using the <monospace>orca()</monospace> function to export a WebGL/Canvas based <bold>plotly</bold> graphic to a static PDF file. The resulting PDF file can then be imported into Adobe Illustrator for post-processing. For a video demonstration of the interactive, see <monospace> <uri><a href="https://bit.ly/plotly-orca" target="_blank">https://bit.ly/plotly-orca</a></uri> </monospace>. For the interactive, see <monospace> <uri><a href="https://plotly-r.com/interactives/orca.html" target="_blank">https://plotly-r.com/interactives/orca.html</a></uri> </monospace> https://s3-euw1-ap-pe-df-pch-content-public-p.s3.eu-west-1.amazonaws.com/9780429447273/5aa76a70-2d8a-4f48-af74-4a299517eb99/content/fig11_1.tif" xmlns:xlink="https://www.w3.org/1999/xlink"/>