我偶然发现了一个问题,我可以将双标图像中的所有文本更改为另一种字体,标签除外。
我使用的代码也附上。我找不到解决此问题的方法,希望有人可以提供帮助。
p <- fviz_pca(fit, geom = c("point"),
repel = TRUE, label = "var",
habillage = IOSDV1$Fertilisation,
addEllipses = TRUE, ellipse.type="confidence",
palette = "npg", labelsize = 5, pointsize = 3,
col.ind = "black", col.var = "black", arrowsize = 0.6) +
theme_bw(base_family = "Palatino Linotype") +
theme(text = element_text(family = "Palatino Linotype", size = 14)) +
labs(title = "")
ggsave(filename = "ggplot_garamond.png", dpi = 600, type = "cairo")