[R] plot function

Petr Pikal petr.pikal at precheza.cz
Wed Jan 26 12:03:42 CET 2005


Hi

first of all do

?plot
?lines


and read the help page (especially about parameters xlim and ylim) 
and/or try to use examples provided.

plot(1:100, rnorm(100), xlim=c(1,50), type="l")

Cheers
Petr


On 25 Jan 2005 at 21:34, Cuichang Zhao wrote:

> Hello, 
> how can use change the plot function to change the range of axises. I
> want my graph from a certain range [a, b], instead of  from the min to
> max of of datas? if i want draw a line instead of dots, should i use
> both plot and lines function. for example: plot(x, y); lines(x, y);
> 
> things seem not working if i only use lines(x, y).
> 
> Thank you so much.
> 
> Cuichang Zhao
> 
> Jan 25, 2005
> 
> 
> ---------------------------------
> 
> 
>  [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list