Re: [R] Titles changing when a plot is redrawn

2011-10-06 Thread John Nolan
expression is not re-evaluated at draw time? John -xieyi...@gmail.com wrote: - To: John Nolan jpno...@american.edu From: Yihui Xie Sent by: xieyi...@gmail.com Date: 10/05/2011 11:49PM Cc: r-help@r-project.org Subject: Re: [R] Titles changing when a plot is redrawn I think the problem is your

[R] Titles changing when a plot is redrawn

2011-10-05 Thread John Nolan
between R 2.10.0 and R 2.13.2 an old bug was fixed. Or this behavior is not what was intended, and a bug was introduced. If the former, this should be explained to the user somewhere. If the latter, can someone track it down and fix? John Nolan

Re: [R] [Rd] Probability of data values form empirical distribution

2009-09-29 Thread John Nolan
The function ecdf(x) computes the empirical cdf from data in the vector x. You can plot it with plot(ecdf(x)), or compute the emp. cdf at new values, e.g. my.cdf - ecdf(x) my.cdf( 0:3 ) # computes the emp. cdf at 0,1,2,3 John

[R] calling a C function with a struct

2008-06-06 Thread John Nolan
I am trying to call a precompiled C function that uses a struct as one of it's arguments. I could write a wrapper function in C, but I was hoping there is some way to pack fields into an array of type raw that could be passed directly to the function. Here is some more detail. The C struct is