Announcement

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

  • Bin by day on x-axis from clock

    I have a continuous clock variable, with a cumulative count over time.

    I want to plot the counts over time. I want the x-axis (time/clock) to bin by day of the month.

    twoway scatter screen_cum screen_clock, xlabel(#23, format(%tcD))

    But Stata insists on only displaying 19 daily bins on the x-axis. How can I force one per day?

    I'm guessing it's doing something it thinks looks nice, and putting a tick every 1.15 days or something, in an arbitrary position within a day.

    Ideally, I would have them binned with labels as in Dr. Cox's Stata Tip 55, but I think this is beyond me for now.

    Thanks much!

    Click image for larger version

Name:	Graph.png
Views:	1
Size:	27.3 KB
ID:	1607946
Working...
X