11.07.2015 Views

Package 'openair'

Package 'openair'

Package 'openair'

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24 drawOpenKeyvpView port to be used when plotting key. The default, NULL, should always beused within openair calls.(Note: drawOpenKey is a crude modification of lattice::draw.colorkey, thatprovides labelling options for openair plot scale keys. Some aspects of thefunction are in development and may to subject to change. Therefore, it is recommendedthat you use parent openair function controls, e.g. key.position,key.header, key.footer options, where possible. drawOpenKey may obviouslybe used in other plots but it is recommended that draw.colorkey itself beused wherever this type of additional scale labelling is not required.)DetailsThe drawOpenKey function produces scale keys for other openair functions.Most drawOpenKey options are identical to those of lattice::draw.colorkey. For example, scalekey size and position are controlled via height, width and space. Likewise, the axis labelling canbe set in and formatted by labels. See draw.colorkey for further details.Additional scale labelling may be added above and below the scale using header and footer optionswithin key. As in other openair functions, automatic text formatting can be enabled viaauto.key.(Note: Currently, the formatting of header and footer text are fixed to the same style as labels(the scale axis) and cannot be defined locally.)The relationship between header, footer and the scale key itself can be controlled using fitoptions. These can be set in key$fit to apply uniform control or individually in key$header$fitand/or key$footer$fit to control locally.The appearance of the scale can be controlled using plot.style.ValueThe function is a modification of lattice::draw.colorkey and returns a scale key using a similarmechanism to that used in in the original function as developed by Deepayan Sarkar.NoteWe gratefully acknoweldge the considerable help and advice of Deepayan Sarkar.Author(s)draw.colorkey is part of the lattice package, developed by Deepayan Sarkar.Additional modifications by Karl Ropkins.ReferencesDeepayan Sarkar (2010). lattice: Lattice Graphics. R package version 0.18-5. http://r-forge.rproject.org/projects/lattice/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!