Home > Enterprise >  Implement google fonts in ggplot2 graphs
Implement google fonts in ggplot2 graphs

Time:09-24

Is there a way to directly access and implement free fonts (like Google fonts) with R for graphs (ggplot2), without having them installed on my PC or Mac?

CodePudding user response:

I think if I were you, I'd use this showtext package that seems to have a function that looks like this :

library(showtext)
font_add_google(name = "Amatic SC", family = "amatic-sc")

I bet this could solve your problem

You can maybe find more documentation on the package page directly (update --> link in the comment of your question, thanks Stefan) but I found all of this on this page

https://www.r-bloggers.com/2019/03/adding-custom-fonts-to-ggplot-in-r/

  • Related