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