Description Usage Arguments Value Examples
Convert a plot to a card
1 |
plot |
the name of a plot (works only for plots with the class |
A character vector containing the plot encoded in base64. Therefore, this function should only be used in tinyslider()
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.