Questions tagged «extrafont»

5
更改ggplot2中的字体
从前,我改变了我的 ggplot2使用windowsFonts(Times=windowsFont("TT Times New Roman"))来更改字体。现在我无法摆脱它。 在尝试设置时family="",ggplot2 theme()我似乎无法生成字体更改,因为我使用不同的字体系列编译以下MWE。 library(ggplot2) library(extrafont) loadfonts(device = "win") a <- ggplot(mtcars, aes(x=wt, y=mpg)) + geom_point() + ggtitle("Fuel Efficiency of 32 Cars") + xlab("Weight (x1000 lb)") + ylab("Miles per Gallon") + theme(text=element_text(size=16, # family="Comic Sans MS")) # family="CM Roman")) # family="TT Times New Roman")) # family="Sans")) family="Serif")) …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.