ggartprint: Order art prints of your ggplot!

View source: R/ggartprint.R

ggartprintR Documentation

Order art prints of your ggplot!

Description

This function takes a ggplot2 output and will order an art print to hang on a wall! Running this function will bring you to a webpage to confirm the order and submit it. No order will be submitted until you explicitly approve it.

Usage

ggartprint(
  plot,
  size = "11x14",
  orientation = c("landscape", "portrait"),
  quantity = 1,
  contact_email,
  address,
  ...
)

Arguments

plot

the plot to use as an art print.

size

the size of the art print. Use ggartprint_sizes() to see a list of the sizes. If a size isn't available that you want email ggirl@jnolis.com for custom sizes.

orientation

should the plot be landscape or portrait?

quantity

the number of prints to order (defaults to 1).

contact_email

email address to send order updates.

address

the physical address to mail the print(s) to. Use the address() function to format it.

...

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

Details

You can choose from a number of options for the size of the print (and either rectangular or square). All of the sizes are high resolution, so things like text size in the R/RStudio plot may not reflect what it would look like as a poster. It's recommended you run the function a few times and adjust plot attributes until you get it the way you like it. The preview image includes a frame, but that will not be included with the print.

Prints take up to 2-3 weeks to deliver.

See Also

address() to format an address for ggirl

Examples

library(ggplot2)
library(ggirl)
delivery_address <- address(name = "Fake person", address_line_1 = "101 12th st",
  address_line_2 = "Apt 17", city = "Seattle", state = "WA",
  postal_code = "98102", country = "US")
contact_email = "fakeemail275@gmail.com"
plot <- ggplot(data.frame(x=1:10, y=runif(10)),aes(x=x,y=y))+geom_line()+geom_point()+theme_gray(48)
ggartprint(plot, size="11x14", orientation = "landscape", quantity = 1,
           contact_email = contact_email, address = delivery_address)

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