Description Usage Arguments Details Value Author(s) See Also Examples
Extracts the scaleline list from an object inheriting from class scaledTrellis. This is useful if the user wants to create their own legend rather than using that generated by addScales.
1 2 3 |
obj |
|
... |
Possible further arguments for future methods. Ignored at present. |
Extracts the scaleline list from a scaledTrellis object. Note that the actual calculated values are returned, not the rounded/formatted values that would be shown in the legend.
A list with components:
numeric: distance between horizontal scalelines and midline
numeric: distance between vertical scalelines and midline
Bert Gunter bgunter.4567@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | set.seed(8763)
simp <- xyplot(rnorm(10) ~ runif(10))
## Plot it
simp
## Add horizontal and vertical scale lines
ad <-addScales(simp,
scaleline = TRUE,,
ndig.midline = 1 ## only 1 digit will be shown
)
## Plot it
ad
## But here are the actual values
## (shown to default number of digits given
## by "digits" argument of print.default)
scaleline(ad)
## cleanup
rm(simp, ad)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.