Description Usage Arguments Examples
This function masks 'ggplot()' from the ggplot2 package in order to apply additional styles appropriate to The Data Collective charts
1 |
... |
arguments intended for a ggplot |
zero_line |
a boolean value indicating whether to include a horizontal line |
legend |
a boolean value indicating whether to include the legend |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(ggplot2)
library(dplyr)
# example scatterplot
ggplot(iris, aes(Sepal.Length, Petal.Length, colour = as.factor(Species))) +
geom_point() +
labs(title = "Fisher's *Iris* data set",
subtitle = "Demonstrating the TDC theme for ggplot2",
x = "The x axis", y = "The y axis",
caption = "Fisher's **Iris** data set") +
style_tdc()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.