View source: R/ggpostcard_example_contouR.R
ggpostcard_example_contouR | R Documentation |
This example makes a postcard with a beautiful graphic using the contouR package by Ijeamaka Anyene.
ggpostcard_example_contouR(background_col = NULL, line_col = NULL)
background_col |
(optional) the background color of the plot |
line_col |
(optional) the color of the lines in the plot |
a ggplot2 plot to pass to ggpostcard
Other ggpostcard_examples:
ggpostcard_example_rstereogram()
,
ggpostcard_example_sunrise()
library(ggirl)
return_address <- address(name = "Jacqueline Nolis", address_line_1 = "111 North St",
city = "Seattle", state = "WA",
postal_code = "11111", country = "US")
contact_email <- "fakeemailforreal@gmail.com"
send_addresses <- address(name = "Fake Personname", address_line_1 = "250 North Ave",
city = "Boston", state = "MA",
postal_code = "22222", country = "US")
messages <- "Look at this cool plot I found!"
plot <- ggpostcard_example_contouR()
ggpostcard(plot = plot, contact_email = contact_email, return_address = return_address,
send_addresses = send_addresses, messages = messages)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.