ggplot_to_pinterest: Send a ggplot plot to a Pinterest board

Description Usage Arguments Value Examples

View source: R/ggplot_to_pinterest.R

Description

Send a ggplot plot to a Pinterest board

Usage

1
ggplot_to_pinterest(plot, board, note, link = NULL, token, ...)

Arguments

plot

a ggplot object

board

the name of the board

note

description of the image

link

a link to put under the image

token

a character string with an access token generated with 'pinterest_token()'

...

arguments to be passed to 'ggsave()'

Value

Either a data.frame, or an error.

Examples

1
2
3
4
5
6
## Not run: 
library(ggplot2)
x <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) + geom_point()
ggplot_to_pinterest(x, "colinfay/gris-mon-amour", "test rpinterest", token = token)

## End(Not run)

ColinFay/rpinterest documentation built on May 6, 2019, 12:22 p.m.