The main aim of this recipe is to introduce you to installing fonts and how to use them to label plots. We have used xkcd fonts for this recipe to introduce humor in our plots. The fonts look very similar to the XKCD cartoon strip.
To download and generate plots using the
xkcd package, we require the
library() functions allow us to download the packages as well as load the library in R:
Next, we just copy and paste the following lines of code to the R command window. These lines of code are used to ...