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.

26 GoogleMapsPlotcex.range = c(2, 10), xlab = longitude,ylab = latitude, main = "", axes = TRUE, map = NULL,map.raster = TRUE, map.cols = NULL, aspect = NULL,as.table = TRUE, plot.type = "xy",plot.transparent = FALSE, key = NULL,key.position = "right", key.header = "",key.footer = pollutant, auto.text = TRUE, ...)Argumentsmydata The openair data frame to use to generate the GoogleMapsPlot plot.latitude,longitudeThe names of the data series in mydata giving the latitudes and longitudes, respectively,of measurements. If only one latitude longitude pair are supplied,the function applies a default range to the plot. To override this either set therequired range using xlim and ylim (see below) or the map zoom level. (Note:The default is equivalent to zoom = 15.)typexlim,ylimpollutantlabelscolslimitscexThe type of data conditioning to apply before plotting. The default is will producea single plot using the entire data. Other type options include “hour” (forhour of the day), “weekday” (for day of the week) and “month” (for month ofthe year), “year”, “season” (string, summer, autumn or winter) and “daylight”(daylight or nighttime hour). But it is also possible to set type to the nameof another variable in mydata, in which case the plotted data will be dividedinto quantiles based on that data series. See cutData for further details.(NOTE:type conditioning currently allows up to two levels of conditioning, e.g., type =c("weekday", "daylight").)The x-axis and y-axis size ranges. By default these sized on the basis of latitudeand longitude, but can be forced as part of the plot call. (NOTE: This arein-development and should be used with care. The RgoogleMaps argumentsize = c(640, 640) can be use to force map dimensions to square.)If supplied, the name of a pollutant or variable in mydata that is to be evaluatedat the each measurement point. Depending on settings, nominally cols and cex,the evaluation can be by colour, size or both.If supplied, either the name of mydata column/field containing the labels tobe used or a list, containing that field name (as labels), and any other labelproperties, e.g. cex, col, etc, required for fine-tuning label appearance.The colour set to use to colour scaled data. Typically, cols is passed to openColoursfor evaluation, but can be forced to one colour using e.g. col = "red". The specialcase cols = "greyscale" forces all plot components (the map, the datalayer and the plot strip of type conditioning) to greyscale for black and whiteprinting. See ?openColours for more details.By default, the data colour scale is fitted to the total data range. However, thereare circumstances when the user may wish to set different ones. In such caseslimits can be set in the form c(lower, upper) to modify the colour range.The size of data points plotted on maps. By default this NULL or pollutantif supplied. If NULL all points are plotted an equal size. If pollutant or the

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

Saved successfully!

Ooh no, something went wrong!