Re: [R] Giving vector of colors to line in plots

2011-02-07 Thread statmobile
On 02/07/2011 02:15 AM, Jinsong Zhao wrote: On 2011-2-7 14:15, statmobile wrote: set.seed(33) x - rpois(7,lambda=7) y - rpois(7,lambda=5) cols.x - c(rep(black,2),rep(red,3),rep(black,2)) cols.y - c(rep(blue,3),rep(yellow,2),rep(blue,2)) points.x - c(rep(x,2),rep(O,3),rep(x,2)) points.y - c

[R] Giving vector of colors to line in plots

2011-02-06 Thread statmobile
Hey all, I can't for the life of me figure out what I'm missing here. I'm trying to change the color of the line in a time series type plot. I can change the point colors and symbols no problem, but for some reason the colors do not get passed to the lines, regardless of if I do type=b or

Re: [R] Applying function to elements of matrices in a list

2010-11-27 Thread statmobile
On 11/25/2010 10:30 AM, Peter Ehlers wrote: On 2010-11-25 07:06, statmobile wrote: On 11/25/2010 09:44 AM, Dimitris Rizopoulos wrote: try this: Reduce(+, x) / length(x) Thanks Dimitris, that's very slick, I was unaware of this Reduce function. The issue, is that I actually wanted to do

[R] Applying function to elements of matrices in a list

2010-11-25 Thread statmobile
Hello R-help, Please cc me on all responses, as I only receive summary emails from this list. I'm wondering if anybody has any tips on how to accomplish this efficiently. I have a list of matrices, and I'm trying to get the mean of the [i,j]'th element of each matrix in a list. So if I

Re: [R] Applying function to elements of matrices in a list

2010-11-25 Thread statmobile
a generic function in the manner I described? Thanks, Brian Best, Dimitris On 11/25/2010 3:42 PM, statmobile wrote: Hello R-help, Please cc me on all responses, as I only receive summary emails from this list. I'm wondering if anybody has any tips on how to accomplish this efficiently. I

Re: [R] Package documentation in dissertation

2010-03-16 Thread statmobile
Thanks Gabor, that looks to be exactly what I was seeking. I'll play around with that. Thanks, Brian On Tue, Mar 16, 2010 at 05:19:23AM -0400, Gabor Grothendieck wrote: See: https://stat.ethz.ch/pipermail/r-help/2005-April/070581.html On Mon, Mar 15, 2010 at 11:16 PM, statmobile statmob

[R] Package documentation in dissertation

2010-03-15 Thread statmobile
Hey Everyone, I wrote up a library for my dissertation work, and I'd love to include it as an appendix. I have found ways to export the Rd files as html, txt and pdf/ps, but not a raw tex export. I've had to resort to dumping it into text files, and just using verbatim in my LaTeX code.

Re: [R] Package documentation in dissertation

2010-03-15 Thread statmobile
would like to include in your dissertation? Stephen On Mon, Mar 15, 2010 at 7:46 PM, statmobile statmob...@gmail.com wrote: Hey Everyone, I wrote up a library for my dissertation work, and I'd love to include it as an appendix. I have found ways to export the Rd files as html, txt and pdf/ps

Re: [R] Package documentation in dissertation

2010-03-15 Thread statmobile
Hey Gabor, Thanks, I tried that, although I can't compile it directly. Do you know where I can get the R LaTeX definitions in order to compile that? Thanks! Gabor Grothendieck wrote: Try: R CMD Rdconv --type=latex myfile.Rd On Mon, Mar 15, 2010 at 8:46 PM, statmobile statmob

[R] Setting matrix dimnames in a list

2008-05-08 Thread statmobile
Hey All, I was wondering if I could solicit a little input on what I'm trying to do here. I have a list of matrices, and I want to set their dimnames, but all I can come up with is this: x - matrix(1:4,2) y - matrix(5:8,2) z - list(x,y) nm - c(a,b) nms - list(nm,nm) z -

Re: [R] Setting matrix dimnames in a list

2008-05-08 Thread statmobile
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.