Sunday, January 15, 2023

how to trim the y-axis on a bar graph in Stata17

Dear Statalist,

I'm hoping to trim off part of the y-axis on a bar graph (circled in red in image below) to make it consistent with a graph combine (am combining with a range area plot)

Array

I've tried to use the yscale(range(numlist)) option without success, as you can see from the following code:

webuse auto
graph bar price if make=="AMC Concord" | make == "Volvo 260", over(foreign) yscale(range(0 15000))


If anyone can advise how to trim the y-axis line a bit (while keeping the labels the same) that would be most appreciated

Kind regards,
Ben







No comments:

Post a Comment