6
我在我的圖例中有兩行。 如何讓一行粗體,藍色和大字體以及一行小字體,紅色和斜體?r ggplot2:在圖例中改變字體大小
library(ggplot2)
library(gridExtra)
p <- qplot(data = mtcars, wt, mpg)
print(arrangeGrob(p, legend =
textGrob("large font size colour blue bold\n small font size colour red italic",
rot = -90, vjust = 1)))
謝謝你的幫助。
OP需要的顏色改變,太。 – hrbrmstr
@hrbrmstr對不起,我錯過了。我認爲在我的解決方案中添加不同的顏色是不可能的。 – Jaap