mime_part.ggplot: Creates a MIME part from a ggplot2 plot object

View source: R/mime_part.R

mime_part.ggplotR Documentation

Creates a MIME part from a ggplot2 plot object

Description

Writes a PDF file of the plot defined by x and turns this PDF file into a file attachment.

Usage

## S3 method for class 'ggplot'
mime_part(x, name = deparse(substitute(x)), device = pdf, ...)

Arguments

x

A ggplot object

name

Name of attachment (sans .pdf extension).

device

Graphics device used to render the plot. Defaults to pdf.

...

Ignored.

Value

An S3 mime_part object.


sendmailR documentation built on Jan. 12, 2023, 5:10 p.m.