getLims | R Documentation |
Get xlim/ylim ranges for plots from real values
getLims(..., perc = 0.99, symm = TRUE)
... |
one or more vectors of real values |
perc |
percentage of dynamic range that should be covered by the limits; if set to 1 the whole range is used. |
symm |
logical value; if set to |
myX <- rnorm(100, mean=1)
myY <- rnorm(100)
myLim <- getLims(myX, myY, perc=0.99)
plot(myX, myY, xlim=myLim, ylim=myLim)
mySymmLim <- getLims(myX, myY, perc=0.99, symm=TRUE)
plot(myX, myY, xlim=myLim, ylim=mySymmLim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.