[R] help appreciated to make a plot

Gabor Grothendieck ggrothendieck at gmail.com
Wed Jul 2 21:57:13 CEST 2008


Check out gap.plot in the plotrix package.

On Wed, Jul 2, 2008 at 2:49 PM, Zheng Lu <zlu at umich.edu> 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.
>
> Zheng
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>



More information about the R-help mailing list