introduction.Rmd
artyfarty
focuses on providing easy access to a few ‘nice’ ggplot theme, it also includes a number of predefined palettes and watermark convenience functions.
artyfarty
is a work in progress. For now you can install the development version using devtools
.
ggplot(diamonds) +
geom_bar(aes(cut, fill = cut)) +
theme_ft() +
ggtitle("Sparkly stones") +
scale_fill_manual(values = pal("ft"))
ggplot(diamonds) +
geom_bar(aes(cut, fill = cut)) +
theme_bain() +
ggtitle("Sparkly stones") +
scale_fill_manual(values = pal("bain"))
A number of palettes are available through the pal()
function. A visual overview can be acquired as follows:
Check out the examples above to see how these palettes can be applied, refer to the ?pal()
documentation for more details
A watermark might not add much value to a plot, but there are times that you just need to be able to to add a simple watermark.
ggplot(diamonds) +
geom_bar(aes(cut, fill = cut)) +
theme_retro() +
ggtitle("Sparkly stones") +
scale_fill_manual(values = pal("retro")) +
watermark_img("Rlogo.png", location = "tl", alpha = .5)