Re: [R] How do I move the horizontal axis in a plot so that it starts at the zero of the vertical axis?

2015-05-31 Thread Boris Steipe
Like this? x <- c(-2.5, -1.3, 0.6, 0.8, 2.1) y <- c(0.3, 1.9, 1.4, 0.7, 1.1) plot(x, y, ylim=c(0, 2), axes=FALSE, asp=1.25) box() abline(h=0) axis(side=1, pos=0.0, lwd=0, lwd.ticks=1) axis(side=2, lwd=0, lwd.ticks=1) B. On May 31, 2015, at 7:49 PM, andrejfa...@ml1.net wrote: > x <- c(-2.5, -1.

Re: [R] How do I move the horizontal axis in a plot so that it starts at the zero of the vertical axis?

2015-05-31 Thread andrejfavia
Alright but then if I include an aspect ratio, the y-axis no longer starts at 0 at the bottom of the plot. x <- c(-2.5, -1.3, 0.6, 0.8, 2.1) y <- c(0.3, 1.9, 1.4, 0.7, 1.1) plot(x, y, ylim=c(0, 2), yaxs="i", asp=1.25) __ R-help@r-project.org mailing li

Re: [R] censboot function for bootstrapping Cox proportional Hazard Model

2015-05-31 Thread David Winsemius
On May 31, 2015, at 2:10 PM, GeertSim wrote: > Dear all, > > I developed a cox regression model with three independent factors to predict > overall survival in a specific group of patients. I would like to adjust > this model for overoptimism with the censboot function of the boot package. > I w

[R] censboot function for bootstrapping Cox proportional Hazard Model

2015-05-31 Thread GeertSim
Dear all, I developed a cox regression model with three independent factors to predict overall survival in a specific group of patients. I would like to adjust this model for overoptimism with the censboot function of the boot package. I would like to use bootstrapping to adjust the regression coe

[R] Fwd: Arrays of variable dimensionality

2015-05-31 Thread WRAY NICHOLAS
Thanks for all the ideas I will run through them next week when I'm back at work... Nick -- Forwarded message -- From: WRAY NICHOLAS Date: 30 May 2015 at 11:29 Subject: Arrays of variable dimensionality To: r-help Hello folks Supposing I have a multidimensional array in an R