[R] plot selected scales on +/- axes

Berend Hasselman bhh at xs4all.nl
Sat Sep 29 18:57:57 CEST 2012


On 29-09-2012, at 15:33, Sabine Dietmann <sabine.dietmann at gmail.com> wrote:

> Hi All,
> 
> I wonder whether it is possible to use the plot function and reduce
> the scales on both +/- quadrants, i.e.
> plot the data from -15. -8 and 8..15 only.
> 

Have a look at

?plot.default

and try

plot(x,y,xlim=c(-15,-8),ylim=c(8,15))

assuming that you are trying an (x,y) plot.

Berend




More information about the R-help mailing list