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

st: Re: RE: RE: RE: St: problems with gridlines in Stata 8.2 graphs


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: RE: RE: St: problems with gridlines in Stata 8.2 graphs
Date   Mon, 24 Nov 2003 12:11:43 -0500

The real issue is that the gridlines are over-writing data lines, which they
shouldn't.  I have experienced this problem (which I posted to the list a
few weeks ago and got no response) and I have also found that gridlines can
over-write axis lines in some circumstances.  Although temporary
work-arounds are helpful, the gridline bug should be fixed.

I had also previously asked if there were a way to make a yline or xline
over write data lines (on purpose), and found there wasn't.    It would be
great if there were a line option that allows any line to be declared on-top
or on-bottom so that users can control the graph better.

Michael Blasnik
[email protected]


----- Original Message ----- 
From: "Nick Cox" <[email protected]>
To: <[email protected]>
Sent: Monday, November 24, 2003 11:44 AM
Subject: st: RE: RE: RE: St: problems with gridlines in Stata 8.2 graphs


> Thanks. That greatly clarifies the problem, which
> I confirm. What's crucial is that with integer-valued
> variables it is possible that many grid values are equal
> to the variable values.
>
> How about offsetting your -xtic()- set
> by 0.5 week? In this example,
>
> ... xtic(0.5(1)8.5, grid notick)
>
> Nick
> [email protected]
>
> Matthew Sydes
>
> > The data is indeed weekly - it relates to the number of
> > patients (and
> > proportion of patients) undergoing follow-up each week
> > after randomisation
> > on a randomised controlled trial by trial arm.  The graph
> > is being produced
> > for quality assurance purposes.  Patients are due to be
> > seen every 13 weeks,
> > hence the choice of gridline.
> >
> > I found it very interesting that you do not seem to
> > experience the same
> > problem.  I should be interested in displaying to you a
> > copy of the graph,
> > and if you wish, providing you with the small dataset from
> > which the graph
> > was formed.  Due to both the confidentiality of the data
> > and the prohibition
> > of files on the list I realise I cannot do this at this stage.
> >
> > Instead, I have constructed a small example that
> > demonstrates the problem
> > when I run it:
> >
> > clear
> > input a b c x
> > 3 4 5 1
> > 2 3 6 2
> > 3 5 8 3
> > 4 5 9 4
> > 5 6 10 5
> > 6 3 8 6
> > 1 4 9 7
> > end
> > twoway (line a x,yaxis(1) c(J)) (line b x, yaxis(1) c(J)) (line c x,
> > yaxis(2) c(J)), xtick(0(1)8,grid)


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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