Hello everyone,
I’ve been trying to figure this out for hours, but I couldn’t find an answer on this forum or elsewhere online.
I need to plot a vertical line on a histogram. However, I’m running into two issues with the xline option:
At x = 5500, the red line is hidden behind the histogram, and at x = 20000, the line doesn’t appear because it’s outside the default range.
Any help would be greatly appreciated!
I’ve been trying to figure this out for hours, but I couldn’t find an answer on this forum or elsewhere online.
I need to plot a vertical line on a histogram. However, I’m running into two issues with the xline option:
- If the line value falls within the histogram range, the vertical line is drawn behind the histogram, so it doesn’t show clearly.
- If the line value lies outside the automatically chosen x-range, the line doesn’t appear at all.
Code:
sysuse auto, clear twoway (histogram price, frac), xline(5500 20000)
Any help would be greatly appreciated!
Comment