Dear all,
I'm trying to figure out how to reduce the distance between two values in a dot plot. I have a very simple dichotomous variable with about 700 observations that I would like to display graphically with horizontal bars (such as in a dot plot). However, whenever I graph the variable using the dotplot command I get a graph with a large gap between the two values (in this case 1 and 2, coded as Yes and No). While the graph presents the data accurately it doesn't look all that great. I worked out how to remove the incremental scale markers (1.2, 1.4, etc.) but the distance between the values of 1 and 2 remains the same. I tried both the gap and the linegap commands but neither is allowed. I feel this should be a very simple thing to do yet for the life of me I can't figure it out. Am I missing something obvious? Any help would be most appreciated.
Here's the command I used and a picture of the resulting graph.
dotplot double_major, yscale(reverse) ylabel(1(1)2, angle(horizontal) valuelabel)
Thanks, Jon
I'm trying to figure out how to reduce the distance between two values in a dot plot. I have a very simple dichotomous variable with about 700 observations that I would like to display graphically with horizontal bars (such as in a dot plot). However, whenever I graph the variable using the dotplot command I get a graph with a large gap between the two values (in this case 1 and 2, coded as Yes and No). While the graph presents the data accurately it doesn't look all that great. I worked out how to remove the incremental scale markers (1.2, 1.4, etc.) but the distance between the values of 1 and 2 remains the same. I tried both the gap and the linegap commands but neither is allowed. I feel this should be a very simple thing to do yet for the life of me I can't figure it out. Am I missing something obvious? Any help would be most appreciated.
Here's the command I used and a picture of the resulting graph.
dotplot double_major, yscale(reverse) ylabel(1(1)2, angle(horizontal) valuelabel)
Thanks, Jon
Comment