[R] plot selected scales on +/- axes
Jim Lemon
jim at bitwrit.com.au
Sun Sep 30 12:22:16 CEST 2012
On 09/29/2012 11:33 PM, Sabine Dietmann 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.
>
Hi Sabine,
As David noted, you might want gap.plot:
library(plotrix)
testdat<-c(sample(-15:-8,6),sample(8:15,6))
gap.plot(testdat,gap=c(-7,7),
main="Gap on Y axis")
gap.plot(testdat,rnorm(12),gap=c(-7,7),
main="Gap on X axis",gap.axis="x")
Jim
More information about the R-help
mailing list