Dear Statalisters,
I have a rather simple question about formatting graphs, but I couldn'f figure it out myself and using the forum's search function didn't yield the desired results.
So, here it comes:
I am using the by() option in a twoway graph to get seperate graphs by an indicator variable. Apparently, some things related to the overall look of the graph need to be specified within the by()-option, e.g. turning of the default note or getting the background in white (see example below).
Now, I would also like to get rid of the coulored text boxes around the title of the subgraphs (blue boxes aroung "Domestic" and "Foreign").
I tried adding things like title(nobox) or title(fcolor(white) bcolor(white)) inside the by() option but that didn't work out. Adding these in the options of the whole graph did'nt work either (i.e. a line like title(fcolor(white) bcolor(white)) below the legend() option in the example).
Does anybody know how to turn off these boxes?
Thank you in advance and best regards,
Boris
Example Code:
Example output (blue circles and X's added by hand to stress how badly I need to get rid of these boxes):
I have a rather simple question about formatting graphs, but I couldn'f figure it out myself and using the forum's search function didn't yield the desired results.
So, here it comes:
I am using the by() option in a twoway graph to get seperate graphs by an indicator variable. Apparently, some things related to the overall look of the graph need to be specified within the by()-option, e.g. turning of the default note or getting the background in white (see example below).
Now, I would also like to get rid of the coulored text boxes around the title of the subgraphs (blue boxes aroung "Domestic" and "Foreign").
I tried adding things like title(nobox) or title(fcolor(white) bcolor(white)) inside the by() option but that didn't work out. Adding these in the options of the whole graph did'nt work either (i.e. a line like title(fcolor(white) bcolor(white)) below the legend() option in the example).
Does anybody know how to turn off these boxes?
Thank you in advance and best regards,
Boris
Example Code:
Code:
sysuse auto, clear twoway (scatter price mpg, by(foreign, note("") graphregion(color(white)))) /// (lfit price mpg), /// legend(region(lcol(white)))
Comment