Hello everyone,
I was using the graph dot command to generate a graph with the means of several ordinal Variables:
graph dot (mean) tg53121 (mean) tg53122 (mean) tg53123 (mean) tg53111 (mean) ///
tg53112 (mean) tg53113 (mean) tg53114 (mean) tg53211 (mean) tg53212 (mean) tg53213, ///
exclude0 ascategory asyvars yscale(range(1(1) 5)) ylabel(1 2 3 4 5)
This gives me the following output:
Graph.gph
As you can (hopefully) see, all my variables (tg53...) are listed on the y-axis. Now, I want to replace the label and have something more meaningful instead. For example, instead of tg53121 it should way "enjoying long walks".
Unfortunately I was sofar unable to find a command that did this for me (and yes, I did spend all my working day on this so far). Can you tell me the command necessary to alterate the labels (although recommended in many posts, legend, label, xlabel ... didn't do it)?
Thank you a lot,
Anne.
I was using the graph dot command to generate a graph with the means of several ordinal Variables:
graph dot (mean) tg53121 (mean) tg53122 (mean) tg53123 (mean) tg53111 (mean) ///
tg53112 (mean) tg53113 (mean) tg53114 (mean) tg53211 (mean) tg53212 (mean) tg53213, ///
exclude0 ascategory asyvars yscale(range(1(1) 5)) ylabel(1 2 3 4 5)
This gives me the following output:
Graph.gph
As you can (hopefully) see, all my variables (tg53...) are listed on the y-axis. Now, I want to replace the label and have something more meaningful instead. For example, instead of tg53121 it should way "enjoying long walks".
Unfortunately I was sofar unable to find a command that did this for me (and yes, I did spend all my working day on this so far). Can you tell me the command necessary to alterate the labels (although recommended in many posts, legend, label, xlabel ... didn't do it)?
Thank you a lot,
Anne.
Comment