Hi,

Thanks for help.

The ecdf has jumps of 1/n but I need jumps of 1. How do I do this? if I can
do this then I think Ic an plot the data properly. I am plotting epidemic
simulation and want to plot my 2 processes Infection and Symptoms (after
incubation) on the same chart to compare them.

Atul.

On Wed, Apr 23, 2008 at 12:35 PM, Charles C. Berry <cberry@tajo.ucsd.edu>
wrote:

>
> Maybe like this?
>
>  proc.1 <- rexp(200,1)
> > proc.2 <- rexp(200,2)
> > plot( ecdf( proc.1 ), xlim=range( proc.1, proc.2 ) )
> > plot( ecdf( proc.2 ), add=T, col.points='red' )
> >
> >
> See
>
>        ?ecdf
>        ?plot.stepfun
>
>
> HTH,
>
> Chuck
>
>
> On Wed, 23 Apr 2008, Greg Snow wrote:
>
>  Can you show us the code you used for the 5 to 10 points? (either
> > generate some random data, or use a sample dataset).
> >
> > --
> > Gregory (Greg) L. Snow Ph.D.
> > Statistical Data Center
> > Intermountain Healthcare
> > greg.snow@imail.org
> > (801) 408-8111
> >
> >
> >
> >  -----Original Message-----
> > > From: r-help-bounces@r-project.org
> > > [mailto:r-help-bounces@r-project.org] On Behalf Of Atul Kulkarni
> > > Sent: Wednesday, April 23, 2008 9:07 AM
> > > To: r-help@r-project.org
> > > Subject: [R] help needed: Plotting step by step.
> > >
> > > Hello,
> > >
> > > I have generated 2 Poisson processes and want to plot them on
> > > a single graph in a step by step manner in order to be able
> > > to compare them. I tried plot and biplot but it does not
> > > help, I could connect two points by hand for point graph if
> > > they were 5 or 10 I have more than 200 such point to be
> > > connected and Poisson cluster makes it difficult for me to
> > > even read them properly.
> > >
> > > Can anyone tell me which is the function that can plot a
> > > stepwise graph for me? I did google over the plot for step
> > > fun but did not understand much of it. A simpler help would
> > > be more useful to me, as I am not a expert either in Statistics or R.
> > >
> > > Regards,
> > > Atul.
> > >
> > > --
> > > Atul S. Kulkarni
> > > Graduate Student,
> > > Department of Computer Science,
> > > University Of Minnesota,
> > > Duluth, MN 55812.
> > > www.d.umn.edu/~kulka053 <http://www.d.umn.edu/%7Ekulka053>
> > > ---------------------------------------------------------
> > > "Before you start some work, always ask yourself three
> > > questions - Why am I doing it, What the results might be and
> > > Will I be successful. Only when you think deeply and find
> > > satisfactory answers to these questions, go ahead."
> > > Chanakya quotes (Indian politician, strategist and writer,
> > > 350 BC-275 BC)
> > >
> > >        [[alternative HTML version deleted]]
> > >
> > > ______________________________________________
> > > R-help@r-project.org mailing list
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide
> > > http://www.R-project.org/posting-guide.html
> > > and provide commented, minimal, self-contained, reproducible code.
> > >
> > >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> >
> Charles C. Berry                            (858) 534-2098
>                                            Dept of Family/Preventive
> Medicine
> E mailto:cberry@tajo.ucsd.edu               UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
>
>


-- 
Atul S. Kulkarni
Graduate Student,
Department of Computer Science,
University Of Minnesota,
Duluth, MN 55812.
www.d.umn.edu/~kulka053
---------------------------------------------------------
"Before you start some work, always ask yourself three questions - Why am I
doing it, What the results might be and Will I be successful. Only when you
think deeply and find satisfactory answers to these questions, go ahead."
Chanakya quotes (Indian politician, strategist and writer, 350 BC-275 BC)

	[[alternative HTML version deleted]]

