I am trying to use the graph title to replace the legend. In this example, I would like the word "foreign" to look red and "local" blue. The rest of the words should remain black. I know that you can change the font or add bold or italics, but I could not find this in the documentation. Any help would be appreciated, thanks.
Code:
sysuse auto, clear twoway /// (scatter price mpg if foreign == 1, mcolor("red")) /// (scatter price mpg if foreign == 0, mcolor("blue")), /// legend(off) /// title("Price and mpg for foreign and local cars")
Array
0 Response to Graph title in different colors to replace legend
Post a Comment