plot_to_card: Convert a plot to a card

Description Usage Arguments Value Examples

View source: R/plot_to_card.R

Description

Convert a plot to a card

Usage

1

Arguments

plot

the name of a plot (works only for plots with the class gg for now).

Value

A character vector containing the plot encoded in base64. Therefore, this function should only be used in tinyslider().

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(ggplot2)

plot1 <- ggplot(mtcars, aes(hp, drat)) +
  geom_point()

tinyslider(plot_to_card(plot1))

## End(Not run)

etiennebacher/shinymisc documentation built on Jan. 1, 2021, 1:14 a.m.