- Fixed a logic error in
baselineSpectra()
which prevented plots from showing in the vignette (and presumeably any report). Unfortunately also had to remove the ability to loop over the various spectra with one call to the function.
- Package
clusterCrit
is back on CRAN so it was returned toChemoSpec
. - Misc documentation format fixes caught by CRAN.
- Remove use of
aaply
andarrange
to avoid dependence onplyr
.
- Fixed a problem with unit tests that should have been run only at home that were being run at CRAN.
- Bumped version at the request of CRAN.
- Replaced use of
@template
in documentation with inline functions, as@template
is deprecated. - There was no official 6.1.7 version, it got bogged down at CRAN.
- Package
clusterCrit
was archived by CRAN, and hence was removed fromChemoSpec
. AffectsevalClusters
function. - Stopped exporting internal functions from
ChemoSpec
and stopped re-exporting internal functions fromChemoSpecUtils
, due to closer checking by CRAN. - Not released to CRAN.
- Fixed an ancient bug in
cv_pcaSpectra
which affected the results. Data was being row scaled internally, this was removed. Scaling was made consistent withc_pcaSpectra
. Data will be centered before proceeding (notice repeated from 6.1.3 which did not go to CRAN).
baselineSpectra
gains a new argumentshow
to allow control of which spectra are shown to the user after baseline correction (notice repeated from 6.1.3 which did not go to CRAN).
averageReplicates
will average sample replicates and return a newSpectra
object
- Removed remaining deprecation warnings about
plotScoresRGL
andplotScores3D
. - Removed
loopThroughSpectra
which was "sort of" deprecated. UsereviewAllSpectra
instead. normSpectra
documentation updated to include warning about protein-containing samples and the PQN method.
- This version not on CRAN.
- Fixed an ancient bug in
cv_pcaSpectra
which affected the results. Data was being row scaled internally, this was removed. Scaling was made consistent withc_pcaSpectra
. Data will be centered before proceeding.
baselineSpectra
gains a new argumentshow
to allow control of which spectra are shown to the user after baseline correction.
- Removed stale entries in
Suggests
andImports
- housekeeping for CRAN, no user-facing changes.
mclust3dSpectra
was overhauled completely and now usesplotly
graphics (an interactive plot appears in a browser window). The color scheme was changed to useCol12
(see?colorSymbol
).
- Functions
plotScoresRGL
andplotScores3D
have been removed from the package. Please useplot3dScores
, which usesplotly
, as a replacement.
- Tab completion for
Spectra
objects implemented. In RStudio typingSrE.IR$
will show a list of possible completions. In theR
console, typingSrE.IR$
followed by the tab key shows possible completions.
- Fixed the example in
hmapSpectra
(the plotp
was not called). plotSpectra
argumentlab.pos
can now be set to"none"
to supress labeling entirely (fixes issue #88).
-
Courtesy GSOC and Tejasvi Gupta, the following plotting functions gain the ability to produce either
base
graphics,ggplot2
orplotly
graphics:plotSpectra
surveySpectra
surveySpectra2
loopThruSpectra
(which has been renamed toreviewAllSpectra
)plotScree
(resides inChemoSpecUtils
)plotScores
(resides inChemoSpecUtils
)plotLoadings
(usespatchwork
and henceplotly
is not relevant)plot2Loadings
sPlotSpectra
pcaDiag
plotSampleDist
aovPCAscores
aovPCAloadings
(usespatchwork
and henceplotly
is not relevant)
-
The
ggplot2
graphics output are generally similar in layout and spirit to thebase
graphics output, but significant improvements have been made in labeling data points using theggrepel
package. And of course theggplot2
graphics can be modified after creation through the usual mechanisms. -
The
plotly
graphics output are interactive plots which can be used for better understanding the data.plotly
provides tools such as zoom, interactive labels and custom positioning which are very useful. -
The graphics output options can be chosen by
options(ChemoSpecGraphics = "option")
. -
See the details in new help file
?GraphicsOptions
. -
loopThruSpectra
has been renamedreviewAllSpectra
to better reflect what it does under the new graphics options.
plotScree2
which has been deprecated for some time now, was removed.- Functions with the
leg.loc
argument now allow much more flexibility with regard to how the legend is positioned. See the documentation. plotSpectra
, when usingbase
graphics, now positions the sample names by a different mechanism, but gives a similar result.
- Update
hmapSpectra
as the wrapped function inseriation
has changed.
- Documentation of
...
insumSpectra
corrected to show how to passtol
tocheck4Gaps
. - Option to use
Col7
a palette of 7 colorblind-friendly colors added tofiles2SpectraObject
documentation.
- Checked against
R
4.04 RC
- Vignettes updated, and moved to html format.
- Continuous integration for building and checking, as well as automated building of the
pkgdown
documentation site. - The "Reference Spectrum" panel label in
plotLoadings
shortened to "Ref. Spectrum" in order to fit the allotted space better.
- Fixed class-checking issues due to changes coming in R 4.0 coming soon.
- Improved documentation in various places.
- Added documentation for
updateGroups
which has been inChemoSpecUtils
for a while but effectively hidden from users ofChemoSpec
. - Fixed the example in
plotSpectraDist
which had strange limits. - Fixed the example in
mclustSpectra
which had an error and used data that was not a good illustration. sampleDistSpectra
was renamedsampleDist
and moved toChemoSpecUtils
. The internal workings and plot details have changed.
- New color and symbol schemes are now provided for using during the import process.
removeFreq
now accepts a formula forrem.freq
. The old syntax remains valid. See the documentation forChemoSpec2D
for examples of how to construct formulas.- New functions
sampleDist
,sampleDist.Spectra
andsampleDist.Spectra2D
.
- Documentation for
hypTestScores
now shows several ways to look at the results. files2SpectraObject
now will pass the argumentSOFC
toreadJDX
if JCAMP-DX files are being processed.
- In
hmapSpectra
the return values (updated in version 5.1.48) were labeled incorrectly. Noticed by Gabriele Beltrame. The function now returns everything returned byseriation::hmap
making it easier for the user to extract the information they desire. Documentation was improved, and additional examples were added illustrating how to pass arguments downstream to customize the plot. - Fixed a bug in
plotScores3D
andplotScoresRGL
in which the wrong percent variance was plotted in the axes labels. Reported by Owen Horsfall.
plotScoresRGL
gains an argumentaxes
which allows one to control the drawing of the reference axes.hmapSpectra
now returns the carpet matrix in addition to the sample and frequency rankings.
- A new vignette, Introduction to PCA, was added.
matrix2SpectraObject
can now handle multiple input matrices (i.e. argumentin.file
can be a vector of file names). The function now includes a progress bar, similar tofiles2SpectraObject
.
- Fixed a buglet in
hcaSpectra
that involved an undesirable cast to data frame, which upset the cosine calculation. evalClusters
was not returning the result in the case ofpkg = "NbClust"
.
- Unit test framework shifted to
tinytest
. - Additional unit tests added.
- Function
s_pcaSpectra
which performs sparse PCA added. - Function
irlba_pcaSpectra
which performs IRLBA PCA added.
- Numerous internal changes to the handling of PCA results were made to accommodate the introduction of sparse PCA features, and allow for easier future introduction of other PCA methods.
- An issue with the setting of x and y limits in
plotScores
was fixed. This was a long standing bug that somehow escaped notice from the early days of this package. Note thatplotScores
is actually inChemoSpecUtils
but is called fromChemoSpec
, affecting the results here.
- Function
conColScheme
moved to packageChemoSpecUtils
. - Documentation
colorSymbol
was moved to packageChemoSpecUtils
. - Vignette updated regarding color issues.
- Unit tests added for
.cleanArgs
.
files2SpectraObject
can now accept any arguments tolist.files
orread.table
via the ... mechanism. Arguments are sanitized more robustly. However, it is possible to pass arguments that may not be of real utility. For instancena.strings
can be specified, but anyNA
in the data imported will trigger warnings and errors.
plotScree
added tor_pcaSpectra
example.
files2SpectraObject
can now accept optional argumentspath
andrecursive
to allow reading through a directory substructure. In addition, a progress bar is now displayed unlessdebug = TRUE
. Both features suggested by Reinhard Kerschner along with preliminary code (thanks!).
- Fixed a problem with color assignment in
.groupNcolor
(the problem seems to have been present from the very beginning). Reported by Reinhard Kerschner (many thanks!). Note.groupNcolor
now resides inChemoSpecUtils
. Reported here for convenience.
matrix2SpectraObject
now usestryCatch()
to more gracefully fail and offer suggestions to user.files2SpectraObject
- Older news may be found via
news(package = "ChemoSpec")
. - The changelog/NEWS file has moved to https://bryanhanson.github.io/ChemoSpec/, but you must know that since you are viewing it!