Re: [R] Trouble using grid.layout in Sweave

2010-07-26 Thread Sebastian Weber
> Supervisory Fishery Biologist > Department of the Interior > US Fish & Wildlife Service > California, USA > > > > - Original Message > > From: Sebastian Weber > > To: r-help@r-project.org > > Sent: Mon, July 26, 2010 7:51:06 AM > > Subject: [R

[R] Trouble using grid.layout in Sweave

2010-07-26 Thread Sebastian Weber
ot it. Many thanks in advance, Sebastian Weber [[alternative HTML version deleted]] __ 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

[R] xyplot: distance between axis and axis-label gets wrong

2008-07-21 Thread Sebastian Weber
about it? A solution would be to put in the labels via the scales-argument into the lattice-machinery, but this is not very nice as I would have no automatic calculation of the limits ... Greetings, Sebastian Weber __ 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.

[R] column wise paste of data.frames

2008-07-18 Thread Sebastian Weber
Hi everybody! I'm sure that I overlook something and feel quite stupid to ask, but I have not found an easy solution to the following problem: Take e.g. the Orthodont data from the nlme package: > head(Orthodont) Grouped Data: distance ~ age | Subject distance age Subject Sex 1 26.0 8

Re: [R] ggplot2 argument handling odd

2008-03-31 Thread Sebastian Weber
stions must sound like beginner questions - but I have searched archives and documentation without success. As we speak of it - is your book finally out? Greetings, Sebastian Weber On Thu, 2008-03-27 at 07:57 -0500, hadley wickham wrote: > > Ok, I will try that, thanks. BTW, where is thi

Re: [R] ggplot2 argument handling odd

2008-03-27 Thread Sebastian Weber
way, I would be curious how to do it with qplot. The basic question is: How to pass the string of a variable to a function which is supposed to interpret it. Aka: var <- "magicVar" fun(doSomeMagic(var)) doSomeMagic should then write magicVar a

[R] ggplot2 argument handling odd

2008-03-26 Thread Sebastian Weber
d pl2$x2 are the same - they both show an x2 ~ x3 plot since this is the current value of obs. So how can I force the variable name substitution? I tried some combinations of parse/eval/substitute with no success. Thanks for your help in advance. Greetings, Sebastian Weber __

Re: [R] Lattice fails to draw insets

2007-10-19 Thread Sebastian Weber
Sebastian Weber On Thu, 2007-10-18 at 14:01 -0700, Deepayan Sarkar wrote: > On 10/18/07, Sebastian Weber <[EMAIL PROTECTED]> wrote: > > Hello all lattice experts! > > > > I'm currently trying to plot inset figures in my lattice graphics. The > > plot is compos

[R] Lattice fails to draw insets

2007-10-18 Thread Sebastian Weber
(insetplot##, draw.in="insetvp##"). However there should be a way to circumvent this very cumbersome way. Any ideas would be great. Thanks in advance. Greetings, Sebastian Weber __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] minimize white space around lattice plot

2007-09-13 Thread Sebastian Weber
ix="insetPlot") upViewport() ## draw the actual plot panel.xyplot(...) ## why is this neccessary?? Otherwise I get no lines for the axis ... grid.rect(gp=gpar()) } x<-0:10 y<-x^4 insetPlot <- xyplot(y ~ x, scales=list(log=T), main=NULL, aspect="fill&q