Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个调查数据基线和终点线。我正在尝试为每个组(基线/结束线)中的受访者资格绘制条形图。
我正在使用以下代码:
graph bar, over(qualification) over(time)
它给了我与我想要的不同的输出。 我希望每个类别的端线和基线条平行存在。
我还附上了一张参考图片,以更好地了解我想要什么。
事项over选项的顺序。graph bar
over
graph bar
考虑这个例子:
clear input x str1 a b 1 "a" 1 2 "a" 2 3 "b" 1 4 "b" 2 end graph bar x, over(a) over(b) title("over(a) over(b)") graph bar x, over(b) over(a) title("over(b) over(a)")
看起来您需要交换over选项的顺序。