Usage
getPreciBar(data, method, cell = "mean", output = "data", name = NULL,
plotRange = TRUE, member = NULL, omitNA = TRUE, info = FALSE, ...)
## S3 method for class 'list':
getPreciBar(data, method, cell = "mean", output = "data",
name = NULL, plotRange = TRUE, member = NULL, omitNA = TRUE,
info = FALSE, ...)
## S3 method for class 'data.frame':
getPreciBar(data, method, cell = "mean",
output = "data", name = NULL, plotRange = TRUE, member = NULL,
omitNA = TRUE, info = FALSE, ...)
Arguments
data
A list containing different information, should be the result of reading netcdf file using
loadNcdf, or load functions from ecomsUDG.Raccess, or a time series, with first column the Date, second the value.
Time series can be an
method
A string showing the calculating method of the input time series. More information
please refer to the details.
cell
A vector containing the locaton of the cell, e.g. c(2, 3), default is "mean", representing
the spatially averaged value. Check details for more information.
output
A string showing the type of the output, if output = 'ggplot', the returned
data can be used in ggplot and getPreciBar_comb(); if output = 'plot', the returned data is the plot containing all
layers' information, a
name
If output = 'ggplot', name has to be assigned to your output, in order to differentiate
different outputs in the later multiplot using getSpatialMap_comb.
plotRange
A boolean showing whether the range will be plotted.
member
A number showing which member is selected to get, if the dataset has a "member" dimension. Default
is NULL, if no member assigned, and there is a "member" in dimensions, the mean value of the members will be
taken.
omitNA
A boolean showing whether the missing value is omitted.
info
A boolean showing whether the information of the map, e.g., max, mean ..., default is FALSE.
...
title, x, y showing the title and x and y axis of the plot. e.g. title = 'aaa'