Description Usage Arguments Value
Given a ggplot, rasterize it, turn it into ASCII, and post it to Slack.
1 2 3 | PlotToSlack(p, characters = c("codeblock", "emoji"), width = NULL,
channelName, botName = NULL,
webhookURL = Sys.getenv("SLACK_WEBHOOK"))
|
p |
A ggplot object. Currently works best if it's monochromatic. |
characters |
One of these two options:
|
width |
The width of the plot in number of characters. Default is 60 for |
channelName |
A string of the form |
botName |
A string of the name of the bot that posts. Default is NULL, which means to use the default bot name that was set up with the Incoming Webhook. See References. |
webhookURL |
A string of the Slack webhook URL of the form
|
Result of the POST
call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.