Re: [R] How to include the documentation of a function in a Sweave document?

2008-02-26 Thread Duncan Murdoch
Thibaut Jombart wrote: > Duncan Murdoch wrote: > >>> Maybe a clue: we can use >>> cat(readLines(as.character(?plot)),sep="\n") >>> >>> to display the help (here, of plot) directly to the screen. So we could >>> use something like: >>> >>> <>= >>> ?plot >>> @ >>> >>> >>> <>=

Re: [R] Add a rectangle behind a plot

2008-02-26 Thread Gabor Grothendieck
Just replot the points over it again: points(x, y) Also there is an example using lattice graphics in the Example section of: library(zoo) ?xyplot.zoo On Tue, Feb 26, 2008 at 7:16 PM, Judith Flores <[EMAIL PROTECTED]> wrote: > Hi there, > > I found one reference to add a reactangle behind a >

Re: [R] Kalman Filter

2008-02-26 Thread Spencer Graves
Have you looked at the 'dlm' package? It has a vignette to help you learn to use it. Also, I've heard that a book about that package is scheduled to appear in the next few months. I have looked at the Kalman functions in the 'stats' package but have not found documentation that s

Re: [R] Adding LaTeX cross-references into Sweave plots

2008-02-26 Thread Duncan Murdoch
Peter Dunn wrote: > Hi all > > I'm using Sweave and LaTeX, and love how they interact. > > But here's a different interaction I'm not sure how to achieve; I > hope someone can help. I use a simple example, of course, to > demonstrate. > > Suppose in my LaTeX document I have this: > > Here

[R] Backwards Lasso

2008-02-26 Thread Alethea Rea
Has anyone computed a Backwards lasso with positive coefficients? I would like the R commands or guidance on fitting such a model. The backwards lasso and positively constrained lasso are both described in Least Angle Regression, Efron etal 2002. __ R

Re: [R] "Raw" histogram plots

2008-02-26 Thread Marc Schwartz
If the goal is to get a sense of the 'shape' of the overall distribution of 'x', then why not use: plot(density(x)) ? HTH, Marc Schwartz Peter Alspach wrote: > Andre > > If I understand you correctly, you could try a barplot() on the result > of table(). > > HTH .. > > Peter Alspach >

[R] multdrc error

2008-02-26 Thread Xin Gong
Dear Sir/Madam: I am newbie of R. I a currently using multdrc object to generate fitting curve and IC50. My 384 well format raw data contains multi dose response curves. My script goes through sets of data then produce curve and ic50. Here is my sudo code: For (plateid in platelist) { Input d

[R] ggplot2 boxplot confusion

2008-02-26 Thread Chris Friedl
Ultimately my aim is to get a plot of density faceted by 2 factors with a horizontal boxplot overlaid on each density plot in the grid to indicate summary stats. So I've been experimenting with creating boxplots and density plots. Here's some representative data. series = c('C2','C4','C8','C10','

Re: [R] numeric format

2008-02-26 Thread Don MacQueen
While we're at it, and since you're new... Your example will be much easier for r-help folks to read if you do it like this: j <- 0.4 for(i in 1:20) { j=j+0.1 cp[i] <- pnorm(-j*3)*10^6 ratio[i] <- j } table <- data.frame(ratio,cp) table But the loop is unnecessary. Try j <- seq(0

[R] Loading user defined functions autometically each time I start R

2008-02-26 Thread Arun Kumar Saha
Hi all, I wrote some user defined function for my own. Now I want to get a mechanism so that every time I start R, those function will automatically be loaded in R without manually copying pasting. Can gurus here pls tell me how to do that? Or I have to build my own packages bundled with those fun

Re: [R] Add a rectangle behind a plot

2008-02-26 Thread Prof Brian Ripley
On Tue, 26 Feb 2008, Judith Flores wrote: > Hi there, > > I found one reference to add a reactangle behind a > plot using plot(...,add=T), I tried this but didn't > obtain the desired result. > > If a I have the following code: > > plot(x,y) > rect(xleft, ybottom, xright,ytop,col='green) > > T

Re: [R] "Raw" histogram plots

2008-02-26 Thread Prof Brian Ripley
On Tue, 26 Feb 2008, Andre Nathan wrote: > I know about stem, but the data set has 1 million points, so it's not > very useful here. I want to avoid binning just to have an idea about the > shape of the distribution, before deciding how I'll bin it. Ideas: 1) use a much smaller sample of the dat

Re: [R] Loading user defined functions autometically each time I start R

2008-02-26 Thread Arun Kumar Saha
I am using R 2.6.2. under windows On Wed, Feb 27, 2008 at 12:43 PM, <[EMAIL PROTECTED]> wrote: > >From: Arun Kumar Saha <[EMAIL PROTECTED]> > >Date: 2008/02/27 Wed AM 01:03:26 CST > >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > >Subject: [R] Loading user defined functions autometically each time

[R] how to specify ggplot2 facet plot order

2008-02-26 Thread Chris Friedl
Hi, new to R and ggplot2. I've been trying to get a facet plot in which the order of the facets is as I require, rather than ordered numerically, alphabetically, by Roman numerals, mean (answers to these were posted here after much searching). Here's some test code to demonstrate what I get. seri

Re: [R] Reading a file created with Fortran

2008-02-26 Thread Dieter Menne
Ben Bolker ufl.edu> writes: > Perhaps read.fwf is what you want? (fwf stands for > "fixed width format"). You would have to work out the > field widths, but it would seem to be pretty straightforward). > [A little bit of extra verbiage will make gmane happier ...] > > Ben Bolker Tru

<    1   2