notify_ggplot: Send a ggplot object to LINE

Description Usage Arguments Value Examples

Description

Send a ggplot object to LINE

Usage

1
2
3
4
notify_ggplot(message = "", token = Sys.getenv("LINE_API_TOKEN"),
  plot = last_plot(), path = NULL, scale = 1, width = par("din")[1],
  height = par("din")[2], units = c("in", "cm", "mm"), dpi = 300,
  limitsize = TRUE, ...)

Arguments

message

message (chr)

token

the LINE Notify personal access token (chr)

plot

ggplot object to save, defaults to last plot displayed

path

path to save plot. (chr)

scale

scaling factor

width

width (defaults to the width of current plotting window)

height

height (defaults to the height of current plotting window)

units

units for width and height when either one is explicitly specified (in, cm, or mm)

dpi

dpi to use for raster graphics

limitsize

when TRUE (the default), ggsave will not save images larger than 50x50 inches, to prevent the common error of specifying dimensions in pixels.

...

other arguments passed to graphics device

Value

httr response object (invisibly)

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(ggplot2)
Sys.setenv(LINE_API_TOKEN="xxxxxxxxxxxxxxxxxx")
data(iris)
p <- ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length)) +
 geom_point()
notify_ggplot("Plotting the Iris", plot = p)

## End(Not run)

fisproject/lineNotify documentation built on May 17, 2019, 11:14 p.m.