[R] help appreciated to make a plot

Jim Lemon jim at bitwrit.com.au
Thu Jul 3 10:43:35 CEST 2008


On Wed, 2008-07-02 at 14:49 -0400, Zheng Lu wrote:
> 
>  Dear All: 
> 
> I have the following data: 
> 
> 	0                		100
> 	  0.5		                79.9605
> 	0.75		                  84.7098
> 	1.5		                 72.1793
> 	2.5		                 97.4924
> 	4.5		                 90.9696
> 	8.5		                59.9794
> 	24.5		                76.4859
> 	456		               100.0000
> 	457.5		                 116.7381
> 	460.5		                118.7550
> 	464.5		               89.5898
> 	480.5		                 86.3348 
> 
> left column is time and right column is concentration, I would like to plot all data on one plot, however, if I specify xlim=c(0,500), there will be a very long distance between points 24.5 and 456, what i am thinking is to make two days(0 and 19 days) very close on the plot and use a kind of "//" sign on the x axis to seperate the x axis. no work needed on Y axis. I hope I clarify my question and thank you very much for your consideration and help in your busy time. 
> 
Hi Zheng,
Have a look at gap.plot and axis.break in the plotrix package.

Jim



More information about the R-help mailing list