[R] help needed: Plotting step by step.
Charles C. Berry
cberry at tajo.ucsd.edu
Wed Apr 23 19:35:49 CEST 2008
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 at imail.org
> (801) 408-8111
>
>
>
>> -----Original Message-----
>> From: r-help-bounces at r-project.org
>> [mailto:r-help-bounces at r-project.org] On Behalf Of Atul Kulkarni
>> Sent: Wednesday, April 23, 2008 9:07 AM
>> To: r-help at 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
>> ---------------------------------------------------------
>> "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 at 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 at 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 at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
More information about the R-help
mailing list