Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72781

twoway: How to center x-axis title with by() option

$
0
0
When I create this twoway graph using the by() option, the x-axis title is not centered on the inner plot region (it is centered relative to the whole figure). This does not look good, especially with long value labels on the y-axis. Is there anyway to center the x-title properly?

Code:
sysuse auto, clear
twoway (scatter price weight), ylabel(, angle(horizontal)) by(foreign)
Array


Viewing all articles
Browse latest Browse all 72781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>