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...)
I´m sorry, my example could be misleading. I wanted to know if I could change the individual values of the x-axis into something else. For example turn 1 into the word "apple" and 2 into the word "orange" ... or turn 1 into the random number "46" and 2 into the number "79" and so on.