[R] complex subscript/superscript on axis labels

2012-02-09 Thread Eileen Meyer
Hi All, I am having trouble getting a complex subscript to work. I'm sure it's possible. Here is what I have: ylab=expression(paste("log ",L[peak]," [erg ",s^{-1},"]")), I would like to have the subscript read "peak,gamma" where the gamma would be the greek symbol. I do want the comma

Re: [R] postscript cuts off left margin

2011-03-07 Thread Eileen Meyer
I found the answer, sorry for not waiting longer before asking. For anyone reading the archives, inserting par(mar=c(5,4,4,2)+0.5) should alleviate the problem (default is +0.1). In general, help(par) is a good thing to check for graphical issues. On 03/07/2011 04:53 PM, Eileen Meyer wrote

[R] postscript cuts off left margin

2011-03-07 Thread Eileen Meyer
pt output in R, but I don't see anything which allows me to set the margins. The page size (6x6) is chosen because it yields a figure which has nice proportions for my paper. Any help appreciated. Eileen -- Eileen Meyer Physics& Astronomy MS-108 Rice University 6100 Main St. H

[R] package 'np' and point estimation with multiple predictors

2010-11-02 Thread Eileen Meyer
(disclaimer: I'm in physics, not stats... ) I have a multivariate problem. One variable, call it R1, and 3 "predictor" variables, P1, P2, P3. My goal is to take a load of training data (I know R1,P1,P2,P3 for about 700 total points), and then predict R1 for a new set of data for which I have al