11.07.2015 Views

Package 'openair'

Package 'openair'

Package 'openair'

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

78 openColoursnNote that because of the way these schemes have been developed they only existover certain number of colour gradations (typically 3–10) — see ?brewer.palfor actual details. If less than or more than the required number of colours issupplied then openair will interpolate the colours.number of colours required.DetailsThis in primarily an internal openair function to make it easy for users to select particular colourschemes, or define their own range of colours of a user-defined length.Each of the pre-defined schemes have merits and their use will depend on a particular situation. Forshowing incrementing concentrations e.g. high concentrations emphasised, then "default", "heat","jet" and "increment" are very useful. See also the description of RColorBrewer schemes for theoption scheme.To colour-code categorical-type problems e.g. colours for different pollutants, "hue" and "brewer1"are useful.When publishing in black and white, "greyscale" is often convenient. With most openair functions,as well as generating a greyscale colour gradient, it also resets strip background and other colouredtext and lines to greyscale values.Failing that, the user can define their own schemes based on R colour names. To see the full list ofnames, type colors() into R.ValueReturns colour values - see examples below.Author(s)David CarslawReferenceshttp://colorbrewer.orgExamples# to return 5 colours from the "jet" scheme:cols

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

Saved successfully!

Ooh no, something went wrong!