Re: [R] lattice xyplot with bty=l

2007-09-05 Thread Patrick Drechsler
Deepayan Sarkar [EMAIL PROTECTED] writes: On 9/4/07, Patrick Drechsler [EMAIL PROTECTED] wrote: what is the correct way of removing the top and right axes completely from a lattice xyplot? I would like to have a plot similar to using the bty=l option for traditional plots

[R] lattice xyplot with bty=l

2007-09-04 Thread Patrick Drechsler
Hi, what is the correct way of removing the top and right axes completely from a lattice xyplot? I would like to have a plot similar to using the bty=l option for traditional plots. An example: --8---cut here---start-8--- rm(list=c(ls())) library(lattice) y

Re: [R] add custom strip to lattice plot

2007-08-02 Thread Patrick Drechsler
Deepayan Sarkar [EMAIL PROTECTED] writes: On 7/30/07, Patrick Drechsler [EMAIL PROTECTED] wrote: what is the recommended way of adding a strip to a lattice plot? See ?strip.default. In the example below I would like to add the value of mean(y) to a new strip.: --8---cut here

[R] lattice grayscale theme

2007-07-30 Thread Patrick Drechsler
Hi, is there a grayscale setting for lattice plots? I like the default color settings. I also like the settings that are available for setting black and white with something like this: --8---cut here---start-8--- ltheme - canonical.theme(color = FALSE)

Re: [R] lattice grayscale theme

2007-07-30 Thread Patrick Drechsler
Patrick Drechsler [EMAIL PROTECTED] writes: is there a grayscale setting for lattice plots? Solved using ## Set background color of strips to grayscales: strip.background - trellis.par.get(strip.background) trellis.par.set(strip.background = list(col = grey(7:1/8))) ## Set color

[R] add custom strip to lattice plot

2007-07-30 Thread Patrick Drechsler
Hi, what is the recommended way of adding a strip to a lattice plot? In the example below I would like to add the value of mean(y) to a new strip.: --8---cut here---start-8--- library(lattice) ## Small sample data set: p0 - xyplot(uptake ~ Type | Treatment,

Re: [R] lattice grayscale theme

2007-07-30 Thread Patrick Drechsler
Deepayan Sarkar [EMAIL PROTECTED] writes: On 7/30/07, Patrick Drechsler [EMAIL PROTECTED] wrote: The Gmane interface seems to have some lag at the moment... Deepayan Sarkar [EMAIL PROTECTED] writes: On 7/28/07, Patrick Drechsler [EMAIL PROTECTED] wrote: is there a grayscale setting

Re: [R] lattice grayscale theme

2007-07-30 Thread Patrick Drechsler
The Gmane interface seems to have some lag at the moment... Deepayan Sarkar [EMAIL PROTECTED] writes: On 7/28/07, Patrick Drechsler [EMAIL PROTECTED] wrote: is there a grayscale setting for lattice plots? I like the default color settings. I also like the settings that are available

Re: [R] unixtime conversion

2007-07-15 Thread Patrick Drechsler
Prof Brian Ripley [EMAIL PROTECTED] writes: On Sat, 14 Jul 2007, Patrick Drechsler wrote: is there an R function to convert unixtime to one of the R time formats (using chron or POSIXct)? Example data: unixtime year month day hour 1183377301 2007 7 2

[R] unixtime conversion

2007-07-13 Thread Patrick Drechsler
Hi, is there an R function to convert unixtime to one of the R time formats (using chron or POSIXct)? Example data: unixtime year month day hour 1183377301 2007 7 2 13 I would like to only use the first column. If such a function does not exist: What would

[R] add confidence intervales to xyplot for ANCOVA and extracting info

2007-03-31 Thread Patrick Drechsler
: | lattice | 0.14-17 ` -- Patrick Drechsler Department of Zoology University of Cambridge Downing Street Cambridge CB2 3EJ, UK __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Xemacs, ESS, R config issue

2007-03-29 Thread Patrick Drechsler
twice inserts a literal underscore. To stop | this smart behaviour, add (ess-toggle-underscore nil) to your | .emacs after ess-site has been loaded; ` HTH Patrick -- Patrick Drechsler tel: +44 1223 334441 Department of Zoology fax: +44 1223 336687 University

[R] [HH] extending ancova function for 2 factors

2007-03-29 Thread Patrick Drechsler
---cut here---end---8--- -- Patrick Drechsler Department of Zoology University of Cambridge Downing Street Cambridge CB2 3EJ, UK __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Sweave issue: quotes in verbatim-like output print incorrectly

2007-03-07 Thread Patrick Drechsler
Gavin Simpson [EMAIL PROTECTED] writes: On Wed, 2007-03-07 at 15:33 +1000, Peter Dunn wrote: But I recently received a new computer, and ever since I have had a problem I've never seen before. For example, I place the following in my Snw file: Try this in the preamble of your Snw file:

[R] format of summary.lm for 2-way ANOVA

2007-03-03 Thread Patrick Drechsler
Hi, I am performing a two-way ANOVA (2 factors with 4 and 5 levels, respectively). If I'm interpreting the output of summary correctly, then the interaction between both factors is significant: , | ## Two-way ANOVA with possible interaction: | model1 - aov(log(y) ~ xForce*xVel,

Re: [R] format of summary.lm for 2-way ANOVA

2007-03-03 Thread Patrick Drechsler
Chuck Cleland [EMAIL PROTECTED] writes: Patrick Drechsler wrote: [...] To see the interactions in detail I call summary.lm: , | summary.lm(model1) [...] | xVel.L 1.079042 0.061859 17.444 2e-16 *** | xVel.Q 0.339802 0.061439 5.531 6.03e-08 *** | xVel.C

Re: [R] Code for Screenshots graphics (following on from ease-of-use issues on www.r-project.org)

2006-11-15 Thread Patrick Drechsler
Knut M. Wittkowski wrote: Apologies if this is the wrong list, but could somebody put the information on how to create the graphs on http://www.r-project.org/screenshots/screenshots.html (or a link to these instructions) next to the graphs? A nice reference for graphics with R can be found

Re: [R] test regression against given slope for reduced major axis regression (RMA)

2006-07-14 Thread Patrick Drechsler
Patrick Drechsler wrote on 11 Jul 2006 02:10:21 MET: [...] I am now confronted with the problem that I have data which requires a modelII regression (also called reduced major axes regression (RMA) or geometric mean regression). For this I use the function modelII (see below). What would

[R] test regression against given slope for reduced major axis regression (RMA)

2006-07-10 Thread Patrick Drechsler
Hi, for testing if the slope of experimental data differs from a given slope I'm using the function test_regression_against_slope (see below). I am now confronted with the problem that I have data which requires a modelII regression (also called reduced major axes regression (RMA) or geometric

Re: [R] subsetting and NAs

2006-03-20 Thread Patrick Drechsler
Eric Archer wrote on 20 Mar 2006 19:46:44 MET: I'm getting some unexpected behavior with subsetting a data frame (aircraft flight data) that I can't sort out. Here is a simplified version of my data frame and problem: flight FlightID TailNo FlightDate HobbsTime FlightCost

[R] [package concord] seeking maintainer

2005-11-18 Thread Patrick Drechsler
Hi, can anybody tell me how to contact the maintainer of the concord package? The address given in the help file is not valid anymore. , | help(package=concord) | | Information für Paket 'concord' | | Description: | | Package: concord | Version: 1.4-2 | Date:

Re: [R] [package concord] seeking maintainer

2005-11-18 Thread Patrick Drechsler
Marc Schwartz wrote on 19 Nov 2005 02:07:09 MET: On Sat, 2005-11-19 at 00:37 +, Patrick Drechsler wrote: can anybody tell me how to contact the maintainer of the concord package? The address given in the help file is not valid anymore. [...] A quick search of this month's r-help

Re: [R] autoscaling plot font size in Sweave output possible?

2005-01-09 Thread Patrick Drechsler
Friedrich Leisch wrote on 08 Jan 2005 11:52:41 MET: [...] To me it sounds much more like you're one of those guys who like it when others solve their problems for free. I gave you an IMO perfectly working cookbook recipe and you didn't even bother to tell me what did not work out for you,

Re: [R] autoscaling plot font size in Sweave output possible?

2005-01-07 Thread Patrick Drechsler
Uwe Ligges wrote on 07 Jan 2005 09:16:09 MET: Patrick Drechsler wrote: I was wondering if it's possible to have fonts in plots to be autoscaled to the same font size used by LaTeX in a surrounding Sweave document. See ?strwidth which might help for the required calculations. Thanks

Re: [R] autoscaling plot font size in Sweave output possible?

2005-01-07 Thread Patrick Drechsler
Hi Friedrich, Friedrich Leisch wrote on 07 Jan 2005 09:49:04 MET: thanks for taking the time! On Thu, 06 Jan 2005 23:56:31 +0100, Patrick Drechsler (PD) wrote: I was wondering if it's possible to have fonts in plots to be autoscaled to the same font size used by LaTeX in a surrounding

[R] autoscaling plot font size in Sweave output possible?

2005-01-06 Thread Patrick Drechsler
Hi, I was wondering if it's possible to have fonts in plots to be autoscaled to the same font size used by LaTeX in a surrounding Sweave document. Here's a short example in which the fonts of the first plot are barely readable: --8schnipp-8---

Re: [R] displaying sample size in boxplots

2004-10-13 Thread Patrick Drechsler
Gabor Grothendieck wrote on 13 Oct 2004 07:16:07 MET: Warnes, Gregory R gregory.r.warnes at pfizer.com writes: : Since I'm still new to R: can somebody give me a pointer to the : docs where to find instructions on a package (not a function)? I : can find the man pages to specific

Re: [R] Lattice .ps graphic is rotated in LaTeX slides

2004-10-01 Thread Patrick Drechsler
Hi Michael, Michael Friendly wrote on 01 Oct 2004 16:09:45 MET: I've generated a version of the classic dotplot of the barley data with [sniped R-code] It looks fine with gv The image is in landscape format when viewed with gv. \begin{slide}

Re: [R] displaying sample size in boxplots

2004-10-01 Thread Patrick Drechsler
Gregory R. Warnes wrote on 01 Oct 2004 14:52:05 MET: [...] Here are the current proposals [for cut paste]: library(ISwR) data(energy) attach(energy) ## 1 boxplot(expend~stature) sample.size - tapply(expend, stature, length) ss.ch - paste(N=, sample.size, sep=) mtext(ss.ch,

Re: [R] displaying sample size in boxplots

2004-09-29 Thread Patrick Drechsler
Hi Marc, Marc Schwartz wrote on 29 Sep 2004 14:08:19 MET: On Wed, 2004-09-29 at 07:46, Patrick Drechsler wrote: I was wondering if there is a ready made function or parameter for indicating the sample size in boxplots? [...] Note that boxplot() returns values, which includes a variety

Re: [R] displaying sample size in boxplots

2004-09-29 Thread Patrick Drechsler
Hi Roger, Roger Bivand wrote on 29 Sep 2004 14:09:17 MET: On Wed, 29 Sep 2004, Patrick Drechsler wrote: I was wondering if there is a ready made function or parameter for indicating the sample size in boxplots? Here's what I came up with so far: library(ISwR) data(energy) attach

Re: [R] displaying sample size in boxplots

2004-09-29 Thread Patrick Drechsler
Martin Maechler wrote on 29 Sep 2004 17:11:13 MET: Roger == Roger Bivand [EMAIL PROTECTED] on Wed, 29 Sep 2004 15:09:17 +0200 (CEST) writes: [snip] Roger Perhaps use the names= argument (width can help too): ^^ Indeed!

Re: [R] Re: [Hmisc] proposal for change in latex.summary.formula.reverse

2004-09-28 Thread Patrick Drechsler
Hi Frank, Frank E. Harrell, Jr. wrote on 28 Sep 2004 10:38:27 MET: [snip] That's not the way to go. It's best to contact the package maintainer (e.g., me) with a request. Ok, personal mail sent. Cheers Patrick -- Millions long for immortality who do not know what to do with themselves on

Re: [R] S latex listings

2004-09-28 Thread Patrick Drechsler
Josep Perarnau wrote on 28 Sep 2004 10:38:12 MET: [...search of listings package for latex...] URL:http://www.ctan.org/tex-archive/macros/latex/contrib/listings/ HTH Patrick -- I hate quotations. Tell me what you know. (Ralph Waldo Emerson) __

[Hmisc] proposal for change in latex.summary.formula.reverse (was: [R] Sweave: superfluous newline (`\\') in tex file)

2004-09-27 Thread Patrick Drechsler
Hi, well, it wasn't a Sweave problem after all. Seems to have something to do with the function `latex.summary.formula.reverse' in the package Hmisc. Following change seems to help (at least for my purpose): --8schnipp-8--- ***

[R] Sweave: superfluous newline (`\\') in tex file

2004-09-26 Thread Patrick Drechsler
Hi, I'm having trouble sweaving the following example: --8schnipp-8--- \documentclass{article} \begin{document} \SweaveOpts{echo=FALSE} @ = rm(list=c(ls())) library(Hmisc) library(ISwR) data(energy) energy$log - log(energy$expend) attach(energy) @

Re: [R] Sweave: superfluous newline (`\\') in tex file

2004-09-26 Thread Patrick Drechsler
Patrick Drechsler wrote on 26 Sep 2004 13:24:31 MET: Is there a way to suppress the extra newline `\\' without editing the Rnw file? sorry, typo: s/Rnw/tex/ Patrick -- Black Holes result from God dividing the universe by zero. __ [EMAIL

Re: [R] sweave: graphics not at the expected location in the pdf

2004-06-25 Thread Patrick Drechsler
Hi Christoph, Christoph Lehmann wrote on 25 Jun 2004 12:51:08 MET: [...] Quite often it happens, that the graphics are not at the place where I expect them, but (often on a separate page) later on in the pdf. How can I fix this, means how can I define, that I want a graphic exactly here and

[R] npmc function: 'x' must be atomic

2004-06-22 Thread Patrick Drechsler
Hi, I'm having trouble getting the function `npmc' working. I have a 2 column 30 row table called `mydata': npmc(mydata, df=2, alpha=0.05) Error in sort(unique.default(x), na.last = TRUE) : `x' must be atomic is.atomic(mydata) [1] TRUE Is there anything I have overlooked? Am I

Re: [R] npmc function: 'x' must be atomic

2004-06-22 Thread Patrick Drechsler
Hi Brian, thanks for the quick reply! Brian Ripley wrote on 22 Jun 2004 15:38:38 MET: On Tue, 22 Jun 2004, Patrick Drechsler wrote: [...npmc...] traceback()/dump.frames/debugger() to pinpoint the error? Wasn't aware of those, thanks for the pointer. Telling us where you got npmc from

Re: [R] [StatDataML] compile error

2004-06-13 Thread Patrick Drechsler
Patrick Drechsler wrote on 11 Jun 2004 19:38:22 MET: [...compile error concerning lxml2...] JFTR: Thanks to the help of David Meyer I was able to solve this problem. One has to add the following lines to ~/.bashrc: export CFLAGS=-I/usr/include/libxml2 export CPPFLAGS=-I/usr/include/libxml2

[R] sweave and psfrag

2004-06-12 Thread Patrick Drechsler
Hi, can somebody give me an example on how to automatically replace all labels in Sweave[1] R plots with corresponding PSFrag[2] labels? Thankful for any pointers, Patrick Footnotes: [1] URL:http://www.ci.tuwien.ac.at/~leisch/Sweave/ [2]

[R] [StatDataML] compile error

2004-06-11 Thread Patrick Drechsler
Hi, sorry if this is OT here. I'm trying to compile StatDataML[1] to import Matlab data into R. The R part works fine but compiling the Matlab part exits with this error message (following the INSTALL instructions: autoconf - ./configure - make): ,[ [EMAIL