Re: [R] expressions (nesting, substitution, 2-stage evaluation)

2014-02-27 Thread Daryl Morris
plot(0:1,0:1) >title(main = ii) > } > > Now as Jim Holtman is fond of saying... what problem were you (really) trying > to solve? > > -- David. >> > >> >Bert Gunter >> >Genentech Nonclinical Biostatistics >> >(650) 467-7374 >&g

Re: [R] expressions (nesting, substitution, 2-stage evaluation)

2014-02-27 Thread Daryl Morris
Daryl On 2/27/14 3:17 PM, Bert Gunter wrote: ?plotmath -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Thu, Feb 27, 2014 at 2:58 PM, Daryl Mor

[R] expressions (nesting, substitution, 2-stage evaluation)

2014-02-27 Thread Daryl Morris
Hi, I have a function which generates many plots. To keep it simple, let's say I want to set the main title based on where we are in nested loops. So, something like vectorA = c("a","b","c") vectorB = c("a","b","c") for(ii in vectorA) { for(jj in vectorB) { plot(0:1,0:1) title(main = pa

[R] knitr and functions generating latex

2013-10-09 Thread Daryl Morris
Hi, I have what I think should be a basic question on knitr. I am just moving to knitr, and previously I had created functions which automatically created latex wrappers for many (100s) figures. I also have other functions which automatically create pages worth of latex tables. The knitr m

[R] patterned non-random jitter

2011-04-15 Thread Daryl Morris
Hi, Is there a function somewhere that does a "patterned" jitter of data? I've googled and the problem is that I don't know what to google for. The setting is in grouped data. I have plots which overlay jittered points on a boxplot. I simply jitter the "x-value", and the "y-value" has no

[R] expression help

2011-03-01 Thread Daryl Morris
Hello, I am trying to write math-type on a plot. Due to space limitations on the plot, I want 2 short expressions written on top of each other. It is certainly possible to write them in two separate calls, but that involves fine-tuning locations and a lot of trial and error (and I'm trying

[R] DiagnosisMed package corrupt?

2011-02-11 Thread Daryl Morris
ata") env <- attachNamespace(ns, pos = pos, dataPath = dataPath, deps)}) 9: library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) 10: .getRequiredPackages2(pkgInfo, quietly = quietly) 11: library(DiagnosisMed) Possible actions: 1: abort (with core dump, if enabled) 2: no

[R] title and axis labels placement with layout

2010-10-04 Thread Daryl Morris
of par("mar")) One solution to (2) would be that textplot include a "main" option. thanks, Daryl Morris SCHARP, FHCRC, UW Biostatistics __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] confirming behavior of "by"

2010-09-28 Thread Daryl Morris
tors for the remaining indices (which would have the order as if they were factorized)? And that the order of the data has no bearing on the order of the results? hopefully that makes sense. or if someone else has a better way of getting the job done? thanks, Daryl Morris FHCRC, UW ___

[R] lmer (or lme) with heteroscedasticity

2009-06-29 Thread Daryl Morris
Hello, I'm trying to fit a mixed-effects model with a single binary predictor (case/control status in my case), a random intercept (e.g. dependent on radiologist) and also a random slope (a per-radiologist difference between cases and controls). I know how to do that, but what I don't know h

Re: [R] max.col weirdness

2009-05-28 Thread Daryl Morris
Hi, Sorry, I was too hasty. I see that the tolerance is in the documentation (and that "random" is the default tie-breaker). Would it be possible to allow tolerance to be a parameter? thanks, Daryl Daryl Morris wrote: Hi, I think there's some rounding issue with returning

[R] max.col weirdness

2009-05-28 Thread Daryl Morris
Hi, I think there's some rounding issue with returning the max column. (running 2.9.0 on an Apple, but my buddy found it on his PC) > x <- matrix(c(1234.568,1234.569,1234.567),1) > max.col(x) [1] 2 > x <- matrix(c(12345.568,12345.569,12345.567),1) > max.col(x) [1] 3 > x <- matrix(c(112345.568,

Re: [R] issue building my own package... moving from Apple OS to Windows

2009-04-24 Thread Daryl Morris
and line. But I'm through the learning curve now, so I'll pipe down. Thanks to everyone who responded! Daryl Morris Univ. of Washington Biostatistics markle...@verizon.net wrote: Hii Daryl: to install from the GUI or just generally on windows, build it so that it's by binar

Re: [R] issue building my own package... moving from Apple OS to Windows

2009-04-24 Thread Daryl Morris
Thanks for the various responses. It was easier than I thought to get all the tools together and setup Windows paths for the build process. I've been successful now on Windows. BUT... how do I make a package which DOES NOT require R CMD INSTALL to install? Obviously, it should not be requir

[R] issue building my own package... moving from Apple OS to Windows

2009-04-23 Thread Daryl Morris
Hello, I have written my own very simple package. On an Apple, I was able to run through the "R CMD build" and "R CMD check" successfully. I have also installed the package, and successfully loaded the library on my Apple. This package is written entirely in R and requires no compilation. I

[R] issue building dataframes with matrices.

2008-08-12 Thread Daryl Morris
out = glm(out~x+y+yy,data=df) Error in model.frame.default(formula = out ~ x + y + yy, data = df, drop.unused.levels = TRUE) : invalid type (list) for variable 'yy' > glmout = glm(out~x+y+yy$VI,data=df) Error in model.frame.default(formula = out ~ x + y + yy$VI, data = df, : invalid type (NULL