ggartprint | R Documentation |
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.
ggartprint(
plot,
size = "11x14",
orientation = c("landscape", "portrait"),
quantity = 1,
contact_email,
address,
...
)
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? |
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 |
... |
other options to pass to |
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.
address()
to format an address for ggirl
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.