Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change origin of graph dot / designplot

    Is it possible to change the origin of graph dot and designplot (from SSC) from 0 and to specify an arbitrary range? The mean of my data is typically 200 and with the plots starting at 0 the data is compressed towards the left axis with a lot of empty space. I can change the labels but 0 is always included when it is not in the data:
    Code:
    sysuse auto
    graph dot (mean) mpg, over(foreign) ylabel(15(5)25)
    I expect that it is straightforward but I cannot see how to do it.

    Thank you,
    Janet

    Stata 14.1 / Windows 10

  • #2
    Look at the help for graph dot to see that there is an option exclude0 which does what you want.

    The definitive sources for designplot are


    gr0061_1 from http://www.stata-journal.com/software/sj15-2
    SJ15-2 gr0061_1. Update: The chi-square... / Update: The chi-square
    goodness-of-fit test for / count data models / by Nicholas J. Cox,
    Department of Geography, / Durham University, Durham, UK / Support:
    [email protected] / After installation, type help designplot

    gr0061 from http://www.stata-journal.com/software/sj14-4
    SJ14-4 gr0061. The chi-square goodness-of-fit... / The chi-square
    goodness-of-fit test for count / data models / by Nicholas J. Cox,
    Department of Geography, / Durham University, Durham, UK / Support:
    [email protected] / After installation, type help designplot

    The title there has been copied wrongly from somewhere else. We'll get that fixed.

    Comment

    Working...
    X