gcplot: Convert a ggplot into a Good Charts themed plot

Description Usage Arguments Examples

View source: R/gcplot.R

Description

Convert a ggplot into a Good Charts themed plot

Usage

1
gcplot(plot, title = NA, subtitle = NA, ylab = NA, caption = NA)

Arguments

plot

A ggplot object

title

(optional) The plot's title

subtitle

(optional) The plot's subtitle

ylab

(optional) The y-axis label

caption

(optional) The caption or source line

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
library(ggplot2)

p1 <- ggplot(iris, aes(Petal.Length, Petal.Width, color = Species)) +
  geom_point() +
  labs(
    title = "A ROSE BY ANY OTHER NAME",
    subtitle = "IRISES PETAL ATTRIBUTE",
    caption = "SOURCE: R.A. FISHER",
    x = "PETAL LENGTH",
    y = "PETAL WIDTH"
  )
gcplot(p1)

## End(Not run)

mikeasilva/gcplot2 documentation built on March 30, 2021, 12:55 p.m.