![]() ![]() ![]() # This will show more detailed information about fonts After the fonts are imported, you can view the available fonts by running fonts() or fonttable(): fonts() ![]() You may see some warnings, but you should be able to ignore them. The first step is to install extrafont, and then import the fonts from your system into the extrafont database: Installation install.packages("extrafont") It will substitute some other font in the place of Garamond: Here's an example of what a PDF using Garamond might look like when it's not embedded, and printed or viewed on a device that lacks the font. Next, you must embed the font into the PDF file to make it render properly on another computer or printer that doesn't already have the font. ![]() When using fonts in PDF files, there are two challenges: First you must tell R that the font is available to use. With it, you can create beautiful, professional-looking results like this: Using other fonts that are installed on your computer can seem an impossible task, especially if you want to save the output to PDF.įortunately, the extrafont package makes this process much easier. When it comes to making figures in R, you can use any font you like, as long as it's Helvetica, Times, or Courier. Today's guest post comes from Winston Chang, a software developer at RStudio - ed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |