[R] rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7

2016-01-08 Thread Wittner, Ben, Ph.D.
Hello, As an example, I ran the following code: library("rgl") example(plot3d) rgl.snapshot("test.png") The f

Re: [R] rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7

2016-01-11 Thread Wittner, Ben, Ph.D.
Dear Duncan, Thanks very much for your reply. I guess I'll start with R-SIG-Fedora. I'll keep you cc'd unless you tell me you would rather I not. -Ben -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Friday, January 08, 2016 8:13 PM To: Wit

Re: [R] rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7

2016-01-11 Thread Wittner, Ben, Ph.D.
- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Wittner, Ben, Ph.D. Sent: Friday, January 08, 2016 4:13 PM To: r-help@r-project.org Subject: [R] rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7 Hello, As an example, I ra

[R] Paik, et al., NEJM, 2004, Fig. 4, rate of event at 10 years as a function of covariate

2010-03-30 Thread Wittner, Ben, Ph.D.
Does anyone know how to make a plot like Fig. 4 of Paik, et al., New England Journal of Medicine, Dec. 30, 2004? Given survival data and a covariate, they plot a curve giving "Rate of Distant Recurrence at 10 Yr (% of patients)" on the y-axis versus the covariate on the x-axis. They also plot curv

[R] Gamma mixture models with flexmix

2011-02-28 Thread Wittner, Ben, Ph.D.
I've been trying with no success to model mixtures of Gamma distributions using the package flexmix (see examples below). Can anyone help me get it to model better? Thanks very much. -Ben ## ## Please help me get flexmix to correctly model mixtures of ## Gamma distributions. See examples below.

[R] interactive heatmap dendrogram locator layout grid package

2008-05-28 Thread Wittner, Ben, Ph.D.
Hello, I would like to display a heatmap with dendrograms and allow the user to click on either dendrogram to choose a sub-dendrogram. The function heatmap() uses layout() and image() and the plot method of dendrogram to plot the heatmap and dendrograms, but if locator() is then called and the us

[R] image() for grid package?

2008-05-29 Thread Wittner, Ben, Ph.D.
Is there a way to display an image (such as is done with the function image()) in a grid package viewport? Thanks. -Ben The information transmitted in this electronic communica...{{dropped:16}} __ R-help@r-project.org mailing list https://stat.ethz.c

[R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-01 Thread Wittner, Ben, Ph.D.
Short form: How do I transform the output of grid.locator() (or grid.locator(unit='npc')) to the native (or npc) coordinates of a viewport other than the top-level viewport? Thanks in advance. -Ben Long form: I would like the user to be able to cl

Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-01 Thread Wittner, Ben, Ph.D.
From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Sun 6/1/2008 3:24 PM To: Wittner, Ben, Ph.D. Cc: [EMAIL PROTECTED] Subject: Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport Ben, What if the click occurs over multiple viewports? Hadley

Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-03 Thread Wittner, Ben, Ph.D.
essage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Paul Murrell > Sent: Monday, June 02, 2008 10:05 PM > To: Wittner, Ben, Ph.D. > Cc: [EMAIL PROTECTED] > Subject: Re: [R] transforming output of grid.locator() to coordinates of a > leaf viewport > &

[R] confidence interval too small in nlme?

2008-01-03 Thread Wittner, Ben, Ph.D.
Hello, I am interested in using nlme to model repeated measurements, but I don't seem to get good CIs. With the code below I tried to generate data sets according to the model given by equations (1.4) and (1.5) on pages 7 and 8 of Pinheiro and Bates 2000 (having chosen values for beta, sigma.b an

Re: [R] Can anyone help??

2008-01-16 Thread Wittner, Ben, Ph.D.
The problem is that the backslash character (i.e., the "\" in "C:\online") is used to separate folder names on MS Windows, but it's used for something else in R. Try survey <- read.csv(file=file.path("C:", "onlinesurvey.csv"), head= TRUE, sep =",") -Ben p.s., As the posting guide instructs, plea

Re: [R] things that are difficult/impossible to do in SAS or SPSSbut simple in R

2008-01-17 Thread Wittner, Ben, Ph.D.
Several people have mentioned large, messy data sets. I am curious as to in what way messy data sets are messy. (I am also curious about what SAS does that helps one deal with them, but perhaps that's asking too much.) Thanks. -Ben > -Original Message- > From: [EMAIL PROTECTED] [mailto:[E

[R] X11 font at size 6 could not be loaded

2008-01-22 Thread Wittner, Ben, Ph.D.
I recently upgraded my OS to Fedora 8 from Red Hat Enterprise Work Station 3. Before I upgraded certain operations would produce a warning to the effect that a desired font was not available so one had been substituted, which was okay. After the upgrade to Fedora 8, the plotting operation halts mid

Re: [R] X11 font at size 6 could not be loaded

2008-01-22 Thread Wittner, Ben, Ph.D.
Dalgaard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 22, 2008 5:00 PM > To: Wittner, Ben, Ph.D. > Cc: r-help@r-project.org > Subject: Re: [R] X11 font at size 6 could not be loaded > > Wittner, Ben, Ph.D. wrote: > > I recently upgraded my OS to Fedora 8 from Red Hat E

Re: [R] X11 font at size 6 could not be loaded

2008-01-22 Thread Wittner, Ben, Ph.D.
8 5:16 PM > To: Wittner, Ben, Ph.D. > Cc: r-help@r-project.org > Subject: Re: [R] X11 font at size 6 could not be loaded > > Have you also changed your locale? F8 defaults to UTF-8 locales, whereas > people usually set up RHEL3 with an 8-bit locale. That changes the font &g

Re: [R] Log rank test power calculations

2008-01-31 Thread Wittner, Ben, Ph.D.
I suspect that someone will write saying that what you want is in one or a few packages, but you might also find the code below useful. (Note, the first two functions require the third.) -Ben ## ## Do power calculation of Freedman for Cox PH as set forth on page 733 ## of 5th edition of Rosner,

Re: [R] [OT] emacs / xemacs for unix without compile

2008-01-31 Thread Wittner, Ben, Ph.D.
I don't know what unix you're using, but if it's fedora 8, the command yum install emacs did the trick for me. You probably need to have root (a.k.a. superuser) privileges to do that. If you like to use ESS with emacs to edit R scripts, yum install emacs-ess My guess is this would work for any Re

Re: [R] modifying arrays within functions

2008-02-05 Thread Wittner, Ben, Ph.D.
In general functions changing global variables as a side effect is dangerous (i.e., often leads to programming errors and difficult-to-maintain code). So, if the performance of the following is sufficient, it is what I would recommend. addition <- function(X, a) { X[1, 1] <- X[1, 1] + a X