我正在尝试使用ggsave()作为ggplot保存为svg。当我这样做时,我会得到一个fontconfig错误。我已经安装和更新了svglite和gdtools软件包。
我在MacOS西拉。
ggplot(diamonds, aes(x = cut, y = price)) + geom_boxplot() %>%
ggsave(filename = "diamonds.svg")
Saving 11.6 x 5.32 in image
Error in match_family_(font, bold, italic) :
Fontconfig error: unable to match font pattern发布于 2017-06-22 15:43:29
你能:
brew install cairoinstall.packages("gdtools")中https://stackoverflow.com/questions/44687409
复制相似问题