Re: [R] Lattice xyplot: modify line width of plot lines

2009-08-24 Thread ukoenig
Now it works. Many thanks, Chuck! Quoting Chuck Cleland : On 8/24/2009 4:47 AM, ukoe...@med.uni-marburg.de wrote: # Hi all, # I want to increase the line width of the plotted lines # in a xy-lattice plot. My own attempts were all in vain. # Without the group option the line width is modified

[R] Lattice xyplot: modify line width of plot lines

2009-08-24 Thread ukoenig
# Hi all, # I want to increase the line width of the plotted lines # in a xy-lattice plot. My own attempts were all in vain. # Without the group option the line width is modified - # with the option it is funnily enough not. # Please have a look at my syntax. # # Many thanks in advance # Udo ###

Re: [R] Comprehensive power analysis/sample size package in R?

2009-07-16 Thread ukoenig
Many thanks for your helpful suggestions and the detailed feedback! We will have a look at your suggestions before buying the (quite expensive) PASS software. -Udo Quoting Tobias Verbeke : Frank E Harrell Jr wrote: Greg Snow wrote: I don't know of a single package that is comparable to PASS

[R] Comprehensive power analysis/sample size package in R?

2009-07-14 Thread ukoenig
Dear all, my colleague (a statistician - not yet using R) aked me, if there is a R package comparable to the software "PASS" (Power Analysis and Sample Size Procedures), comprising about 150 procedures. I found the R package "pwr". Are there other (more comprehensive) power analysis packages?

Re: [R] odfWeave: odt-file damaged

2009-07-07 Thread ukoenig
Hi, I think, I can answer my own posting. I found out, that the directory structure of the ODT-file created by "odfWeave" causes the error message. The file structure of the unzipped odt-file looks like this: Pictures content_1-Boxplot.png content.xml current.xml manifest.xml meta.xml

[R] odfWeave: odt-file damaged

2009-07-06 Thread ukoenig
Dear all, I am doing my first steps with odfWeave. After running the r code (see below), I am trying to open the ODF-document with open office, but I am getting the error message: "The file is damaged, but it can be repaired". If I confirm the question and repair the file with open office, I can

[R] odfWeave: odt-file damaged

2009-07-06 Thread ukoenig
Dear all, I am doing my first steps with odfWeave. After running the r code (see below), I am trying to open the ODF-document with open office, but I am getting the error message: "The file is damaged, but it can be repaired". If I confirm the question and repair the file with open office, I can

Re: [R] Variable names in lattice XY-plot

2009-07-03 Thread ukoenig
Thanks a lot Baptiste and Deepayan! That was very helpful-things can be so easy... -Udo Quoting Deepayan Sarkar : On Fri, Jul 3, 2009 at 1:02 PM, baptiste auguie wrote: ?strip.custom p <- xyplot(acet+chol+ino+acetp ~ zp, group=grp, data=data, type="l", scales=list(rela

[R] Variable names in lattice XY-plot

2009-07-03 Thread ukoenig
Hi, how can I get a more descriptive text instead of the variable names in my XY-lattice plot, according to the table below? Variabletext acet = "Acetylaspartate Thalamus" chol = "Choline Thalamus" acetp= "Acetylaspartate parieoc" ino = "Inositole Thalamus" I could not find

Re: [R] Interaction plots (six on one page)

2009-07-02 Thread ukoenig
Thank you Rich, it looks very nice and seems to be the better solution. Udo Quoting "Richard M. Heiberger" : I would do this as a lattice plot. Continuing with your data: tmp <- data.frame(sapply(data, tapply, data[1:2], mean)) tmp$time <- factor(tmp$time) xyplot(thanaa+thalcho+thalino+pona

Re: [R] Interaction plots (six on one page)

2009-07-01 Thread ukoenig
Now it works, I modified one variable (xleg) in the function, Thanks a lot! Quoting jim holtman : It appears that the legend is fixed in that location within the funciton. You could modify the function to put the legend in some other location. On Wed, Jul 1, 2009 at 3:07 AM, wrote: Thank

Re: [R] Interaction plots (six on one page)

2009-07-01 Thread ukoenig
Thank you, Jim! It looks much better with that new aspect ratio! Unfortunately the legend is located at the same place, too far on the rigt side next to the border. Any ideas? Thanks, Udo Quoting jim holtman : add par(mar=c(2.5,4,1,1)) just after layout On Tue, Jun 30, 2009 at 4:20

[R] Interaction plots (six on one page)

2009-06-30 Thread ukoenig
#Dear R users, #I want six interaction plots to be on one page, #but the following problem occurs: the legend "BMIakt" appears, #but it is exactly on the border of the plots (too far right). #My seccond question is, how I can reduce the empty space in the y-direction #between the plots. #Please h

Re: [R] Problem with Freq function {prettyR}

2008-06-14 Thread ukoenig
Thank you Jim, the error message appeared, as I tried to run an example from the wonderful script „R for SAS and SPSS Users“ written by Bob Muenchen (p. 76): http://oit.utk.edu/scc/RforSAS&SPSSusers.pdf This is the code on page 76: # Frequencies & percents using the freq function # from the prett

Re: [R] Problem with Freq function {prettyR}

2008-06-13 Thread ukoenig
Thanks a lot, Jim! > Since this is a contributed package, you should be contacting the > maintainer (as mentioned in the posting guide). sorry > > Anyway, the problem occurs because in the second case you have a factor > in the first column and numeric in the second. This part of the code >

[R] Problem with Freq function {prettyR}

2008-06-13 Thread ukoenig
Does someone have an idea? Thanks a lot! Udo Quoting Udo <[EMAIL PROTECTED]>: > Dear list, > I have a problem with freq from prettyR. > > Please have a look at my syntax with a litte example: > > > library(prettyR) > > #Version 1 > test.df<-data.frame(q1=sample(1:4,8,TRUE), gender=sample(c("f",

Re: [R] Matched pairs with two data frames

2008-04-20 Thread ukoenig
Thank´s a lot, Patrick! That´s what I was looking for... Zitat von Patrick Connolly <[EMAIL PROTECTED]>: > On Wed, 16-Apr-2008 at 11:58AM +0200, Udo wrote: > > > |> I only "need" line 1, 6 and 9. To show this, > |> I added "needed" by hand. > |> > |>age school out1 out2 needed > |> 1

Re: [R] Table of basic descriptive statistics like SPSS

2008-03-18 Thread ukoenig
Dear all, thank you very much for the provided support and all the hints, which were very helpful! Now I know how to continue. >See ?pdf >Please, note first search commands: >apropos("pdf") >RSiteSearch("latex") >Using these, you would have found by yourself the various corresponding >functions. P

[R] Table of basic descriptive statistics like SPSS

2008-03-17 Thread ukoenig
Dear list readers, I want to: 1. Get a table of basic descriptive statistics for my variables with the variable names one below the other like SPSS descriptive statistics: Varname N Min Max Mean SD x x xx x xxx x x xx x 2. Delete some variables from a data frame

Re: [R] Transfer Crosstable to Word-Document

2008-02-16 Thread ukoenig
Hi, thank you very much for your comments and examples, which are very helpful! [I saw that the summary.formula (lib. Hmisc) has an option "cross", which might be useful too...] Alan, I agree with you: at the workplace we have a Windows-XP network with MS-Office, so I have to cope with this; I wil

Re: [R] Transfer Crosstable to Word-Document

2008-02-15 Thread ukoenig
Thank you Gabor, but with 1. or 2. I don´t get a table, which can be changed and formatted using the WORD table functions (like changing column width and formatting text in rows). The result of 1. ist an bitmap and the result of 2. an ASCII-Table A rich formatted (*.rtf) table/object would be be

[R] Transfer Crosstable to Word-Document (2. attempt)

2008-02-15 Thread ukoenig
# Dear list, # I am an R-beginner and # spent the last days looking for a method to insert tables produced # with R into a word document. I thought about SPPS: copy a table from # an SPO-file and paste it into a word document # (if needed do some formatting with that table). # Annother idea was, t

[R] Transfer Crosstable to Word-Document

2008-02-15 Thread ukoenig
# Dear list, # I am an R-beginner and # spent the last days looking for a method to insert tables produced # with R into a word document. I thought about SPPS: copy a table from # an SPO-file and paste it into a word document # (if needed do some formatting with that table). # Annother idea was, t

[R] Error message svIO library with latex option

2008-02-12 Thread ukoenig
Hi, first I want so say hello to all the members of the list. After working with SAS and SPSS, I do my first steps with R. I have a problem with the copy function of the svIO-library. The ascii option works, but with the latex-option, an error message appears ("invalid filename argument"): > lib