ggwatercolor_preview: Preview your watercolor request

View source: R/ggwatercolor.R

ggwatercolor_previewR Documentation

Preview your watercolor request

Description

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.

Usage

ggwatercolor_preview(plot, size, orientation, ...)

Arguments

plot

the plot to use as an art print

orientation

should the plot be landscape or portrait?

...

other options to pass to ragg::agg_png() when turning the plot into an image.

Details

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.

See Also

ggwatercolor() to request the watercolor commission

Examples

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")

jnolis/ggirl documentation built on July 1, 2023, 4:51 p.m.