Breaking changes
- Deprecated functions contourPlot()andcreateBaseMap()have been removed.
- downloadBasemap()now returns a- tifffile
with- GeoTIFFmetadata, instead of- png.
New features
- contourPlot2()introduces new arguments- maskand- inverse_mask. These allow plotting
data only inside (or outside) a polygon specified by a- shpfile.
- Labels in plotAvgTemp(),plotStabilityClass()andplotAvgRad()now
respect the locale setting. The optional argumentlocalehas also been added to override the system locale. Currently supported
locales are Italian and English; unsupported locales are converted to
English.
- plotAvgRad()now includes options to change the y-axis
label and the title.
- plgtAvgTemp()and- plotStabilityClass()gain- dateargument to specify the name of the column with
datetime data.
Minor improvements and fixes
- contourPlot2()now masks content outside the plot
domain. Previously, values outside plot domain were set to NA’s, which
could potentially cause artefacts at the borders.
- contourPlot2()has been updated to fix some breaking
changes introduced by- ggplot2since version 3.5.0 where- guide_legend()only draws a key glyph for a layer when the
value is in the layer’s data.
- contourPlot2()now removes- -Inffrom the
levels list (if present) when plotting only contour lines.
- In plotAvgRad(), a missing colour for average radiation
in the legend has been fixed.
- In plotAvgTemp(), a missing colour for average
temperature in the legend has been fixed.
- In plotAvgTemp(), a bug related to the name of the
column with temperature data has been fixed.
- In stabilityClass(), the tables defining the stability
class as functions of radiation, wind speed and cloud cover have been
slightly updated.
- In stabilityClass()theimpactmethod has
been deprecated and renamed toiaea.
- In plotStabilityClass(), a bug where a missing class
was not shown in the legend has been fixed.
- Almost all the dependencies from Openair have been
removed.
- Other minor bugs have been fixed and documentation has been updated
and hopefully improved.
- Removed Unicode symbols (on CRAN request).
- Explicitly add x and y scales limits to
contourPlot2.
- Updated deprecated functions from scalespackage.
- Bug fix: avoid Infduplication incontourPlot2legend.
- Documentation: spell check and improvements.
- Dependency from other packages has been reviewed.
RColorBrewer,dplyrandpngare
not required any more.
- rasterbecomes suggested, since it is only required by
the deprecated- contourPlot()function. Geo processing is
now performed by the required- terrapackage.
- Openairis now a suggested package.
- Bugs were fixed in the Pasquill stability class functions
stabilityClass()andplotStabilityClass().
Furthermore, some working examples have been added.
- In contourPlot2(), deprecation ofstat(level)andsizeofggplot2()have been fixed.
- Improved documentation and READMEfile.
- The package is ready to be submitted to CRAN.
- Fixed many syntax errors, cleaned up code to try to comply with best
practices.
- Fixed warnings in the documentation and added some working examples
in some functions.
- Added some tests.
- Added a sample dataset stMeteowith hourly values of
wind speed, wind direction, temperature, global radiation, total cloud
cover and stability class.
- Renamed NEWStoNEWS.md.
- Updated READMEfile.
- Trying to fix issues with fonts in contourPlot2().
- Updated readme file and fixed some minor issues in the
documentation.
- BREAKING CHANGE: in raster plots in contourPlot2(tile
= TRUE) intervals are closed on the left and open on the right. In
previous versions it was the opposite. In this way an interval0 - 1does include values equal to 0 and does not include
values equals to 1.
- magickpackage is now suggested (not required). If it
is not installed, it will not be possible to read (and plot) background
base maps in- contourPlot2.
- In contourPlot2do not addInfas upper
limit in levels in the case of delta maps, when the first level is
negative. Note that this will probably change the output of some
scripts.
- Vector field lengths are not normalised any more and changed default
scale factor. This modification aims to facilitate comparison of vector
fields from different source files.
- Updated readme and added a brief example.
- Fixed labels of contourPlot2which occasionally were
not properly formatted.
- Minor update in the documentation.
- Added boolean option tileto plot tiles instead of
contours.
- Fixed bug in importRaster().
Breaking changes
- vectorField()has now a unique parameter for scaling
vector length;
- Length of the arrow head in vectorField()has been
removed in exchange for a sensible default;
- Bug fixes.
New features
- New contourPlot2()function:
- Based on ggplot2 v3.3.0 and
geom_contour_filledfunction;
- Colour bands are not overlapped any more therefore the maps are more
accurate;
- Legend labels are more informative and smarter (you can also use +/-
Inffor upper and lower bound);
- Legend type for contour lines (no filling) is now a line;
- Added possibility to specify column names to the data;
- Axis labels are rounded to 0 decimals (they are in metres);
- Background image can be any format (jpeg, png, etc.);
- Almost entirely a substitute of contourPlot().
- New downloadBasemap()function to download base map
from the Italian National Geoportal.
Bug fixes and minor
improvements
- vectorFieldhas better defaults for vector
lengths.
- Changed position of legend in plotAvgRad().
- The package is now compliant with R cmd check (CRAN).
- Many other minor bug fixes and checks.
- Introduced function vectorFieldto plot meteorological
vector field.
- Function importADSOBINis now compatible witharinfopyversion 2.3.2.
- Function contourPlotaccepts asizeparameter for contour line thickness.
- Function contourPlotaccepts acoverboolean parameter to specify if contours should be colour covered or
not.
- Bug fix in plotAvgRad.
- Function contourPlotaccepts abareboolean parameter to remove any graphical element of the plot (axis,
titles, legend, …).
- Function contourPlotaccepts asmoothnessparameter to improve the horizontal resolution of the dataset (smaller
cells) by the given (integer) factor. The new raster object to be
plotted is obtained by bilinear interpolation.
- New importADSOBINfunction to read ADSO/BIN files.
- plotStabilityClassuses seasons instead of
quarters.
- plotAvgTempcorrectly manages time zones.
- Option verboseofimportRaster()set toFALSEby default (it wasTRUE).
- Option fnameofimportRasterrenamed tofileand set tofile.chooserby default.
- Documentation improvement.
- plotStabilityClass:- 
- Correct order in color bars from ‘A’ to ‘F’.
 
- contourPlot:- 
- Fixed bug when lowest level to plot is negative, as in delta
maps;
- Fixed bug when there is an overlay to plot.
 
- Borders in contour plots have width set to 0pxby
default.
- Improved treatment of borders in contourPlot.
- Fixed bug when extending domain to close contour lines.
- Fixed bug in user defined colours for contourPlot.
- New colorsparameter tocontourPlotfor
user defined color palette.
- New geom_hollow_polygonandstat_hollow_contourto correctly plot hollows in filled
contour plots.
- Add verbose option in importRaster.
- Add option kzinimportRasterto multiplyzvalues.
- Added transparency level in contourPlotinput.
- contourPlotis able to correctly plot negative values.
Improved management of borders. Bug fixes.
- Vertical shift of the labels in the contourPlot()legend.
- Fixed library dependence for plotAvgTemp.
- Added stMeteodataset for testing.
- New contourPlot()function to plot contour levels
diagrams of pollutant concentration.
- Code cleaning.
- in importRaster()added the possibility to shift X
and/or Y coordinates by dX/dY.
- Added createBaseMap()function to create base maps for
contour plots. It currently works only with png files.
- Bug fix in destaggering of raster files. destaggering is now default
to FALSE.
- Default fonts changed from Helvetica to Arial to avoid problems on
windows machines.
- Bug fix in destaggering of raster files.
- New importRaster()function to read all gdal
supported raster files.
- Patched importSurferGrd.Rto read GRD files generated
by CALPUFF/CALPOST.
- Added optional title parameter in plotAvgTemp.
- In plotAvgTemp, plots table of plotted values below the
graph.
- Bug fixes in plotAvgRad
- stabilityClass()has three methods to compute stability
class:- impact, as in ARIA Impact,- pasquill(standard classification) and- custom.
- plotStabClass()function has been renamed to- plotStabilityClass().
- It is now possible to select the name of the column with stability
class values in plotStabilityClass().
- Destaggering of grid fields is applied by default in
importSurferGrd().
- A little bit of clean-up in the documentation.