ggartprint_preview | R Documentation |
This function takes a ggplot2 output and gives a preview of how the plot will look as an art print. While it's totally fine to just call ggirl::ggartprint to preview, this allows you to preview locally.
ggartprint_preview(plot, size, orientation, ...)
plot |
the plot to use as an art print |
size |
the size of the art print. Use |
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.
ggartprint()
to order the art print
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)
ggartprint_preview(plot, size="11x14", orientation = "landscape")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.