Fonts in R plots

前端 未结 2 585
春和景丽
春和景丽 2020-12-08 07:03

What graphics devices let me use system fonts for text within charts? The base graphics system only has a small amount of documentation around the par(family=...)

2条回答
  •  青春惊慌失措
    2020-12-08 07:53

    You can use system fonts with cairo_pdf. On Ubuntu (and many other types of Linux, I guess), the family argument takes any font name you see in fc-list.

    Alternatively, you can use the extrafont package. This will allow you to use any system font with the regular pdf device.

提交回复
热议问题