Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] plot problems

Roland Rau

2007-05-21

Replies:

Markus voigt wrote:
> because it should start at 2. Is there a parameter where you can define
> the start on the x-axis?

Maybe this will help you?

datax1 <- 1:8
datax2 <- 2:9
datay1 <- runif(length(datax1))
datay2 <- runif(length(datax2))

plot(x=datax1, y=datay1, type="l", col="blue", xlab="X",
   ylab="Y",xlim=range(c(datax1, datax2)), ylim=c(0,1))
lines(x=datax2, y=datay2, col="red")


Best,
Roland

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.