[R] plotting

Jim Lemon jim at bitwrit.com.au
Sat Sep 1 14:42:42 CEST 2007


yoooooo wrote:
> Hi, let's say I have data
> 
> x = c(1, 2, 10, 12)
> y = c(100, -20, 50, 25)
> 
> if I go plot(x, y), then the default x-axis range goes from 1 to 12. Is
> there a way to change it so that the axis looks like:
> 
> ----|-----|-----|-----|----
>      1       2       10     12
> 
> This doesn't seem reasonable but let's say I want to plot intraday graph
> with axis.POSIXct, my data is only from 8:30 to 4 every day and I have these
> data for days.. i don't want to see a straight line every night.. Is there a
> way I can do this? 
> 
Hi yoooooo,
Have you looked at gap.plot (plotrix)?

Jim



More information about the R-help mailing list