我已经在我的本地机器上安装了fontawesome ttfs 并将它们加载到 R 中。当我使用它进行测试时,它会按预期fonts()[grep("Awesome", fonts())]
返回。"FontAwesome"
我可以运行带有某些字形的华夫饼图……到目前为止,男性、女性和公文包都可以使用,但其他的不行,例如“建筑”。
知道发生了什么吗?
library(ggplot2)
library(fontawesome)
library(extrafont)
library(waffle)
# This works fine
waffle(
c(`Poor=10` =10, `Average=18` = 18, `Excellent=7` =7), rows = 5, colors = c("#FD6F6F", "#93FB98", "#D5D9DD"),
use_glyph = "female", glyph_size = 12 ,title = 'Girls Performance', legend_pos="bottom"
)
# This does not work
waffle(
c(`Poor=10` =10, `Average=18` = 18, `Excellent=7` =7), rows = 5, colors = c("#FD6F6F", "#93FB98", "#D5D9DD"),
use_glyph = "building", glyph_size = 12 ,title = 'Girls Performance', legend_pos="bottom"
)