[R] Re : Custom axis
joris.dewolf at cropdesign.com
joris.dewolf at cropdesign.com
Wed Aug 1 12:20:55 CEST 2007
What about the other way round?
x <- 1:10
y <- rnorm(10,10,1)
x2 <- 3*x + 2
plot(y ~ x2, xaxt = "n")
axis(side=1,at = x2, labels = x)
Florent Bresson
<f_bresson at yahoo.
fr> To
joris.dewolf at cropdesign.com
01/08/2007 12:14 cc
r-help at stat.math.ethz.ch,
r-help-bounces at stat.math.ethz.ch
Subject
Re : [R] Custom axis
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 : "joris.dewolf at cropdesign.com" <joris.dewolf at cropdesign.com>
À : Florent Bresson <f_bresson at yahoo.fr>
Cc : r-help at stat.math.ethz.ch; r-help-bounces at stat.math.ethz.ch
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
<f_bresson at yahoo.
fr> To
Sent by: r-help at stat.math.ethz.ch
r-help-bounces at st 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 at 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.
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
Mail
More information about the R-help
mailing list