Is there a way to alter the y axis on individual xtline plots? The only solutions I've found so far is to simply exclude the problematic id using an if condition or to manually create individual graphs for each id using twoway line, but I'm sure there's a better way to deal with this issue.
If it helps, here's a sample dataset and two graphs to illustrate the problem:
Code:
clear set obs 10 gen id = _n expand 20 bys id: egen time = seq(),f(1) t(20) xtset id time gen var1 = runiformint(0,100) if id !=10 replace var1 = runiformint(0,2000) if id == 10 xtline var1 xtline var1 if id !=10
Array Array
0 Response to Different y-axis range on xtline plots
Post a Comment