[R] par(mfrow=c(1,3)) and postscript(file=)

2013-05-24 Thread Öhagen Patrik
I am printing three graphs into the same page using par(mfrow=c(1,3)) and the I want to save the file as postscript format using postscript() When input the postscript file into the manuscript the three graphs appear on separate pages. What have I missed and done wrong? Thank you in

[R] Three plots with logged X-axis in the same plot

2013-05-16 Thread Öhagen Patrik
I have, say, three plots with several medical terms on the y-axis plotted against HR's on a log-scaled x-axis. In order to highlight the time profile for the different plots, I would like to merge (put them next to each other, if that makes sense) together the log scaled x-axises and present

Re: [R] Three plots with logged X-axis in the same plot

2013-05-16 Thread Öhagen Patrik
www.lakemedelsverket.se -Ursprungligt meddelande- Från: Jim Lemon [mailto:j...@bitwrit.com.au] Skickat: den 16 maj 2013 14:13 Till: Öhagen Patrik Kopia: r-help@r-project.org Ämne: Re: [R] Three plots with logged X-axis in the same plot On 05/16/2013 09:50 PM, Öhagen Patrik wrote: I have

Re: [R] Three plots with logged X-axis in the same plot

2013-05-16 Thread Öhagen Patrik
[mailto:jrkrid...@inbox.com] Skickat: den 16 maj 2013 14:53 Till: Öhagen Patrik; r-help@r-project.org Ämne: RE: [R] Three plots with logged X-axis in the same plot Can you supply us with a bit of sample data? It's not clear from your description of the problem if you are working with equivalent x -scales

[R] Create patterns within a plot?

2013-03-14 Thread Öhagen Patrik
Dear All, As an attempt to highlight the overall pattern in a Forest plot, I would like to highlight the area around HR=1. I cannot find any simple tools for painting a grey ribbon between 0.9 and 1.1. Any suggestions? Thank you in advance! Cheers, Patrik [[alternative HTML version

Re: [R] Create patterns within a plot?

2013-03-14 Thread Öhagen Patrik
Please note that I want to use log-scale on the x-axis which makes the polygon function sad. Cheers, Patrik -Ursprungligt meddelande- Från: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] För Öhagen Patrik Skickat: den 14 mars 2013 08:47 Till: R hELP Ämne: [R

[R] Reading extremly large comma separated files?

2012-12-19 Thread Öhagen Patrik
Dear List, Are there any tricks or wise suggestions on how to import huge comma separated files into R? We have used the ordinary read syntax but it takes forever Thank you in advance! Cheers, Patrik __ R-help@r-project.org mailing list

Re: [R] Reading extremly large comma separated files?

2012-12-19 Thread Öhagen Patrik
The sqldf package as suggested by a friendly soul worked excellent. ...and yes! Forever +/- epsilon ;) Cheers, Patrik -Ursprungligt meddelande- Från: b.rowling...@gmail.com [mailto:b.rowling...@gmail.com] För Barry Rowlingson Skickat: den 19 december 2012 14:47 Till: Öhagen Patrik

[R] Percentage scale on y-axis

2012-01-02 Thread Öhagen Patrik
Seasonal Greetings! I am trying to plot a simple survival curve using; plot(survfit(Surv(d01,cens) ,conf.type=none ),xlab=Time,ylab=Survival) I would be interested in a percentage scale on the y-axis. How do I achieve sucha scale? Thank you in advance!

[R] Surprising behaviour of fisher.test

2011-08-29 Thread Öhagen Patrik
I did a simple little simulation of a binary variable in a two armed trial. I was quite surprised by the number of p-values delivered by the fisher.test function which was 1(!). Of course, under the null hypothesis you expect a fair number of outcomes with the same number of event in both arms

[R] p-values from coxph?

2010-10-15 Thread Öhagen Patrik
Dear List, I each iteration of a simulation study, I would like to save the p-value generated by coxph. I fail to see how to adress the p-value. Do I have to calculate it myself from the Wald Test statistic? Cheers, Paddy __ R-help@r-project.org

[R] Confidence Intervals for proportion according to Blyth, Still Casella

2009-12-04 Thread Öhagen Patrik
Are the confidence Intervals for proportion according to Blyth,Still Casella implemented in R? Thank you in advance! Cheers, Patrik __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Confidence Intervals for proportion according to Blyth, Still Casella

2009-12-04 Thread Öhagen Patrik
Are the confidence Intervals for proportion according to Blyth,Still Casella implemented in R? Thank you in advance! Cheers, Patrik __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Exponential smoothing?

2008-08-19 Thread Öhagen Patrik
Dear List, I have used all my resources (i.e. help.search) and I still havn't been able to figure out if there is an Exponential Smoothing command in R. Thank you in advance! __ R-help@r-project.org mailing list

[R] Measure of agreement??

2007-12-12 Thread Öhagen Patrik
Dear List, Please put me on the right track. I have been searching for the R functions for measures of agreement. Where should I look? Patrik Öhagen Läkemedelsverket Box 26 751 03 Uppsala Tel. +46(0)18-174924 [EMAIL PROTECTED] [[alternative HTML version deleted]]

[R] Controlling the Output from table()

2007-10-07 Thread Öhagen Patrik
Dear All, I would like to have some controll over the output from the function table(). I want to controll the order of the cells and I want to include empty cells (if any). Example: I have ordinal data wich takes the values 1,2,3N but I want the output from table to put the

Re: [R] Controlling the Output from table()

2007-10-07 Thread Öhagen Patrik
in my table. I hope that made sense? Thank you in advance! Cheer, Patrik -Ursprungligt meddelande- Från: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Skickat: den 7 oktober 2007 09:11 Till: Öhagen Patrik Kopia: [EMAIL PROTECTED] Ämne: Re: [R] Controlling the Output from table() On Sun