ggpmisc 0.3.5

This version (0.3.5) adds to geom_table() support for table themes compatible with gridExtra::ttheme_default(). The default table-theme can be changed with function ttheme_set() and several new ttheme constructors are also available as well as support for user defined theme constructors and themes. Changes affect the rendering of tables, and add flexibility to the handling of mapped aesthetics in geom_table()

Note: The default theme for tables in version 0.3.5 uses slightly less padding than in previous versions, and this padding is now proportional to the text’s size instead of fixed. This will not break old code but can slightly change how tables look.

The plots below make use of two of the new table theme constructors. The second plot also uses ggplot2’s theme_dark().

Note: If the full flexibility of ‘gridExtra’ and ‘grid’ are needed for a table, the table can be constructed directly with these packages and added as an inset using geom_grob().

Acknowlegement: This update was encouraged by a recent question at stackoverflow. The tag [ggpmisc] is in use at stackoverflow for questions related to this package.

Documentation web site at http://docs.r4photobiology.info/ggpmisc/ includes all help pages, with output from all examples, and vignettes in HTML format.

NOTE: The new version of the package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/ggpmisc/issues.

photobiologyFilters 0.5.1

Package documentation web site at: https://docs.r4photobiology.info/photobiologyFilters/

The main changes from version 0.5.0, the current CRAN version, released 10 months ago are:

New

  • Add filter.properties metadata when available, supporting convertTfrType() and convertThickness() functions available in ‘photobiology’ (>= 0.10.2).
  • Add data for Heliopan UVIR-cut “Digital” filter.
  • Add data for Fotga UV IR CUT filter.
  • Add refractive_index.mspct with spectral data for 15 materials.
  • Revise the User Guide.

Fixed

  • Correct wrong spelling of Tangsinuo Technologies in two filters’ names and documentation.

NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket at https://bitbucket.org/aphalo/photobiologyfilters/issues

photobiologyWavebands 0.4.4

Package documentation web site at: https://docs.r4photobiology.info/photobiologyWavebands/

The main changes from version 0.4.3 the previous CRAN release, are:

New

  • NDVI() for computing the Normalized Difference Vegetation Index from spectral transmitance.

Fixed

  • Avoid warnings during building of vignettes, caused by changes to the options recognized by ‘roxygen2’.
  • Update URLs to secure ones if available.

NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket at https://bitbucket.org/aphalo/photobiologywavebands/issues

ggspectra 0.3.6

Package documentation web site at: https://docs.r4photobiology.info/ggspectra/

The changes from version 0.3.5, the current CRAN release, are:

New

  • Support for computation of colors using other chromaticity coordinates than the color matching function (CMF) for human vision.
  • stat_spikes(), useful for highlighting and labeling spikes in spectra.
  • Fitted peaks and valleys (experimental).
  • Annotations "wls" and "wls.labels" in autoplot() methods.
  • Update decoration() to support "wls" and "wls.labels".
  • Compatibility with ‘dplyr’ (>= 1.0.0).
  • Track changes in ‘photobiology’ 0.10.1 and 0.10.2.

Bugs fixed

  • Fix two bugs in ggplot() method for class object_spct.

NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket at https://bitbucket.org/aphalo/ggspectra/issues

photobiology 0.10.2

Package documentation web site at: https://docs.r4photobiology.info/photobiology/

This new update comes on the steps of the two previous ones (0.10.0, 0.10.1) and fixes a few bugs found since.

Changes from version 0.10.1 the most recent CRAN release, are:

Bugs fixed

  • color_of() was failing in some cases when it should not.
  • merge2object_spct(), merge_attributes(), interpolate_spct(), [ ] were in certain cases dropping attributes, in most but not all cases only filter.properties.
  • White LED example spectra may have had attributes inconsistently set.
  • Additional test cases were added (a suite of 4165 automatic test cases is used before release).

NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/photobiology/issues

ggpmisc 0.3.4

This version (0.3.4) adds to stat_poly_eq() the ability to return F-value and P-value in addition to the equation of the polynomial, R2, AIC and BIC available in earlier versions of ‘ggpmisc’. The package code and examples have been updated to avoid the use of functions and methods that have been deprecated in recent updates to ‘ggplot2’.

library(ggpmisc) # version >= 0.3.4 !!
ggplot(mtcars, aes(x = wt, y = mpg, colour = factor(cyl))) +
  geom_smooth(method="lm") +
  geom_point() +
  stat_poly_eq(formula = y ~ x,
               aes(label = paste(stat(f.value.label), stat(p.value.label), 
                                 sep = "*`,`~")),
               parse = TRUE,
               label.x.npc = "right") +
  theme_bw()

The code above produces the plot below.

Acknowlegement: This update as well as the very start of the development of this package has been triggered by some great questions posted at stackoverflow. These questions and answers can be found with a search for the tag [ggpmisc] at stackoverflow. When asking questions or help related to this package, please tag your question.

Documentation web site at http://docs.r4photobiology.info/ggpmisc/ includes all help pages, with output from all examples, and vignettes in HTML format.

NOTE: The new version of the package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/ggpmisc/issues.