9 Introduction

This portion of the book, Publishing views, covers how to save plotly graphs as HTML, embed them within larger HTML documents, interactively edit (i.e., post-process) them, and export to static file formats – all of which can be useful tools for creating ‘publication-quality’ graphics. Static images can be created either from the command line (via the orca() function) or from the interactive graphic itself. The former is great if you need to export many images at once and the latter is convenient if you need to export a manually edited version of the default view (e.g., Figure 12.1). All the R code in this chapter runs entirely locally using 100% free and open source software with no calls to external services.