The ggsave() function is an easy way to export plot to a file in SVG, HTML or raster formats.
ggsave()
export_to_file.ipynb
Exports plot to a file. Supported formats: SVG, HTML, PNG, JPEG and TIFF. Note: in some configurations raster formats might not be supported.