I m plotting one stacked bar plot where i need to write legend and title in Times New Roman Font. By Default it is in Arial font. How can i change it?
grid.text("title", x = 0.33, y = 1, just = c("left", "top"),
gp = gpar(fontsize = 18, fontface = "bold"))
I used one more parameter fontfamily = "Times" but i get error message. How can i use Times font with it?
Regards
Try using
font=instead offontfamily=.For more information, see the blog, Specifying Fonts in R, by Paul Murrell, The University of Auckland. Also see Changing the fonts in R plots, by James Keirstead.
This question is similar to another SO question, Fonts in R plots.