这是我的ggpairs
情节代码:
library(ggplot2)
library(tidyr)
library(GGally)
ggpairs(data = Food,
mapping = aes(color = "darkorange"),
columns = 2:4,
upper = "blank",
diag = "blank",
axisLabels = "none",
) +
theme_bw() + scale_color_manual(values = "darkorange") +
#theme(plot.caption = element_text(face = "TT Times New Roman")) +
#theme(text = element_text(family = "A")) +
#theme(axis.text = element_text(size = 8)) +
labs(caption = "Källa: Coop", title = "Sambandet mellan olika produkter") +
theme(plot.title = element_text(hjust = 0.5))
我需要将绘图中文本的字体更改为 Times New Roman,并增加每列中文本的大小。“#”之后的代码不起作用,我想知道是否有人可以帮助我解决这个问题。