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

2011-10-06 Thread John Nolan
uated expression is not re-evaluated at draw time? John -xieyi...@gmail.com wrote: - To: John Nolan 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 str1 is an uneval

[R] Titles changing when a plot is redrawn

2011-10-05 Thread John Nolan
he plot is redrawn, and since the value of i is 2 when the redraw occurs, both labels get set to "i=2". I guess "Save as" forces a redraw because a dialog box pops up? If could be that this behavior is what is intended, and that somewhere between R 2.10.0 and R 2.13.

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 s