Hi  I have a vector of data (for example c(2,3,4,5,4,3,2)

data<-c(2,3,4,5,4,3,2)
plot(data)

I simply want to up the index values along the x axis by 2, so that instead of
1, I have 3, instead of 2 I have 4 etc etc.  Despite ages playing around with
the axis function I can't get it to work, and keep getting weird error messages.
 This is likely to be laughably simple but if someone can help me out I'd be
grateful

Thanks Nick W
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to