Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: xscale range with negative upper bound

From   "maartenbuis" <[email protected]>
To   [email protected]
Subject   st: xscale range with negative upper bound
Date   Mon, 01 Nov 2004 13:05:36 -0000

Dear list,

The upper bound is ignored, when I make a histogram of a variable
containing only negative values and I want to expand the x axis, but
the upper bound is still negative. In the example below I expected
the x-axis to run from -60 to -10, but it runs only from -60 to -30.
What am I doing wrong here?


sysuse auto
gen minturn = -turn
hist minturn, xscale(range(-60 -10))
  //x axis runs from -60 to -30 not -60 to -10

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index