Hello,

how can I change the values of the x-axis in an line-plot?

I do not want to change the range of the values (with the function xlim=c(1:5))

Instead I try to transform the values into another number.

Which command can I use to transform the values of the x-axis, for example in this plot:

y=1:10

x=1:10

plot(x,y,type="l")

into 5,6,7,8,9,19,20,21,22,23,24 (so 1 turns into 5, 2 turns into 6 and so on...)

Thank´s for your help!