Good afternoon.
I have two questions regarding using weighted markers in state graphics. Below is some simple code that creates two scatter plots and then combines them:
clear all
input x y weight group
1 1 1 1
2 1 100 1
1 1 100 2
2 1 1000 2
end
twoway scatter y x if group==1 [w=weight], name(A)
twoway scatter y x if group==2 [w=weight], name(B)
graph combine A B
When this is graphed however, the marker with weight "100" in graph A and graph B are of very different sizes. Is there a way to ensure uniform sizes for identical weights when graphing with weighted markers? Which leads me to a more general question: how does stata size these markers to begin with? The marker with weight "1,000" in graph B is much smaller than the marker with weight "100" in graph A.
Thank you
Margot
I have two questions regarding using weighted markers in state graphics. Below is some simple code that creates two scatter plots and then combines them:
clear all
input x y weight group
1 1 1 1
2 1 100 1
1 1 100 2
2 1 1000 2
end
twoway scatter y x if group==1 [w=weight], name(A)
twoway scatter y x if group==2 [w=weight], name(B)
graph combine A B
When this is graphed however, the marker with weight "100" in graph A and graph B are of very different sizes. Is there a way to ensure uniform sizes for identical weights when graphing with weighted markers? Which leads me to a more general question: how does stata size these markers to begin with? The marker with weight "1,000" in graph B is much smaller than the marker with weight "100" in graph A.
Thank you
Margot
Comment