Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Alignment Issue: Twoway (histogram)(connected)

From   Niall MacDonald <[email protected]>
To   [email protected]
Subject   st: Alignment Issue: Twoway (histogram)(connected)
Date   Sun, 17 Sep 2006 17:40:02 -0600


I am having difficulties getting the datapoints on a twoway plot (histogram and connected line) to align correctly. The problem arises even when a simple script is used:

twoway (connected tot_num doy)(histogram doy, discrete freq barwidth(1))

tot_num numbers the events that occur over the year consecutively; doy is the day of the year on which each event occurred.

The problem is, that despite using a common x-axis, the corresponding bars on the frequency histogram and points on the connected line graph do not line up. The majority of the points on the connected line appear to be shifted to the right of their corresponding frequency bars.

Any help would be appreciated!
* For searches and help try:

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