タグ付けされた質問 「showtext」

5
ggplot2でのフォントの変更
昔々、ggplot2usingを使ってフォントを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")) print(a) …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.