Вопрос

I have the following codes which works. I want to make the legend fonts bolder but I'm using the auto legend at the moment, just wondering if it is possible to do it? Many thanks in advance!

plot.xts(Margins, 
         screens = c(1,1,2,2,3,3,4,4),
         col = brewer.pal(n=9,"PuBu")[c(8,4,6,9)], lwd = 6,
         legend.loc = c("topright"), auto.legend = T,
         main="Margin Comparison")
Это было полезно?

Решение

just use font=2 as argument.

plot.xts(Margins, 
         screens = c(1,1,2,2,3,3,4,4),
         col = brewer.pal(n=9,"PuBu")[c(8,4,6,9)], lwd = 6,
         legend.loc = c("topright"), auto.legend = T,
         main="Margin Comparison",
         font = 2
)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top