Dear collegues,
I'm currently working on a graph that represents the average perception of consumers regarding two types of products : Aquaculture and wild products.
On this graph, i want to compare their opinion regarding several products attributes : Expensive, Taste, Hard to cook ...
My data are organised as follows :

"A" correspond to the different attributes tested in our survey; "MeanPê~e" to the average score obtained for wild products; "MeanAqua" to the average score obtained for farmed products ; "Meangl~l" the average score obtained for both.
I them use the following command to create my graph :
I obtain this graph :

My question is : How can I add a line to each sub-graph for the average score obtained (Meangl~l) for each of the attributes tested?
I've tried a simple command like the following, but it doesn't work :
I think the solution lies in the two-way chart, but I haven't mastered this tool very well yet. So I wanted to know if someone could help me solve this problem? If you want more information, I'm always available!
Thanks for your help!
Regards,
JF
I'm currently working on a graph that represents the average perception of consumers regarding two types of products : Aquaculture and wild products.
On this graph, i want to compare their opinion regarding several products attributes : Expensive, Taste, Hard to cook ...
My data are organised as follows :
"A" correspond to the different attributes tested in our survey; "MeanPê~e" to the average score obtained for wild products; "MeanAqua" to the average score obtained for farmed products ; "Meangl~l" the average score obtained for both.
I them use the following command to create my graph :
Code:
graph hbar (mean) MeanPêche (mean) MeanAqua, by(A)
My question is : How can I add a line to each sub-graph for the average score obtained (Meangl~l) for each of the attributes tested?
I've tried a simple command like the following, but it doesn't work :
Code:
graph hbar (mean) MeanPêche (mean) MeanAqua, by(A) yline(Meanglobal)
Thanks for your help!
Regards,
JF
Comment