GSOC 2021: New Graphics for ChemoSpec
It’s been quiet around this blog because supervising two students for Google Summer of Code has kept me pretty busy! But we have some news… |
Thanks to Mr. Tejasvi Gupta and the support of GSOC, ChemoSpec
and ChemoSpec2D
were extended to produce ggplot2
graphics and plotly
graphics! ggplot2
is now the default output, and the ggplot2
object is returned, so if one doesn’t like the choice of theme or any other aspect, one can customize the object to one’s desire. The ggplot2
graphics output are generally similar in layout and spirit to the base
graphics output, but significant improvements have been made in labeling data points using the ggrepel
package. The original base
graphics are still available as well. Much of this work required changes in ChemoSpecUtils
which supports the common needs of both packages.
Tejasvi did a really great job with this project, and I think users of these packages will really like the results. We have greatly expanded the pre-release testing of the graphics, and as far as we can see every thing works as intended. Of course, please file an issue if you see any problems or unexpected behavior.
To see more about how the new graphics options work, take a look at GraphicsOptions. Here are the functions that were updated:
plotSpectra
surveySpectra
surveySpectra2
reviewAllSpectra
(formerlyloopThruSpectra
)plotScree
(resides inChemoSpecUtils
)plotScores
(resides inChemoSpecUtils
)plotLoadings
(usespatchwork
and henceplotly
isn’t available)plot2Loadings
sPlotSpectra
pcaDiag
plotSampleDist
aovPCAscores
aovPCAloadings
(usespatchwork
and henceplotly
isn’t available)
Tejasvi and I are looking forward to your feedback. There are many other smaller changes that we’ll let users discover as they work. And there’s more work to be done, but other projects need attention and I need a little rest!
Reuse
Citation
@online{hanson2021,
author = {Hanson, Bryan},
title = {GSOC 2021: {New} {Graphics} for {ChemoSpec}},
date = {2021-10-13},
url = {http://chemospec.org/posts/2021-10-13-GSOC-CS-Graphics/2021-10-13-GSOC-CS-Graphics.html},
langid = {en}
}