# \donttest{
# Plotting iris dataset (using ggplot2):
library('ggplot2') # theme_empty() requires ggplot2
ggplot(datasets::iris) +
geom_point(aes(x = Petal.Length, y = Petal.Width, color = Species), size = 4, alpha = 1/2) +
scale_color_manual(values = c("firebrick3", "deepskyblue3", "olivedrab3")) +
labs(title = "NOT SHOWN: Title",
subtitle = "NOT SHOWN: Subtitle",
caption = "NOT SHOWN: Data from datasets::iris") +
theme_empty(plot_mar = c(2, 0, 1, 0)) # margin lines (top, right, bot, left)
# }
Run the code above in your browser using DataLab