ggwatercolor_preview | R Documentation |
This function takes a ggplot2 output and gives a preview of how plot will be requested to be painted. While it's totally fine to just call ggirl::ggwatercolor to preview, this allows you to preview locally.
ggwatercolor_preview(plot, size, orientation, ...)
plot |
the plot to use as an art print |
orientation |
should the plot be landscape or portrait? |
... |
other options to pass to |
The preview will appear in either the "Viewer" pane of RStudio or in your browser, depending on if RStudio is installed or not. The preview includes a frame, but that will not be included with the print.
ggwatercolor()
to request the watercolor commission
library(ggplot2)
library(ggirl)
plot <- ggplot(data.frame(x=1:10, y=runif(10)),aes(x=x,y=y))+geom_line()+geom_point()+theme_gray(48)
ggwatercolor_preview(plot, orientation = "landscape")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.