Question

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")
Was it helpful?

Solution

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
)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top