Maybe I do not explain well what I would like to do. I do not want to change the labels of the axis, but the scale. What I want is a general procedure for changing the scale. Its like using a logarithmic scale on a plot. Labels are the same, but the increases of x along the x-axis are defined by a known monotone and continuous function.
Florent Bresson ----- Message d'origine ---- De : "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> À : Florent Bresson <[EMAIL PROTECTED]> Cc : r-help@stat.math.ethz.ch; [EMAIL PROTECTED] Envoyé le : Mercredi, 1 Août 2007, 12h01mn 58s Objet : Re: [R] Custom axis x <- 1:10 y <- rnorm(10,10,1) x2 <- 3*x + 2 plot(y ~ x, xaxt = "n") axis(side=1,at = x, labels = x2) Joris Florent Bresson <[EMAIL PROTECTED] fr> To Sent by: r-help@stat.math.ethz.ch [EMAIL PROTECTED] cc at.math.ethz.ch Subject [R] Custom axis 01/08/2007 11:49 Dear R users, I would like to draw a plot with a custom scale for the axis. More precisely, instead of plotting y on x, I want to plot y on a monotone function of x (for instance a*x+b). Which command and/or package should I use in order to get this result? Thanks Florent Bresson _____________________________________________________________________________ ______________________________________________ R-help@stat.math.ethz.ch 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-help@stat.math.ethz.ch 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.