Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotting vignette: smooth maps #71

Open
1 of 3 tasks
cbeleites opened this issue Apr 14, 2018 · 0 comments
Open
1 of 3 tasks

plotting vignette: smooth maps #71

cbeleites opened this issue Apr 14, 2018 · 0 comments
Labels
Note: help wanted Status: ready ✔️ this issue can be tackled now Topic: vignette 📗 Related to vignettes of hyperSpec Type: enhancement 🎈 asking for a new feature.
Milestone

Comments

@cbeleites
Copy link
Owner

cbeleites commented Apr 14, 2018

Smoothing of maps can be achieved via a variety of models and easily displayed using latticeExtra::panel.2dsmoother.

library (hyperSpec)
library (latticeExtra)

chondro  <- chondro - spc.fit.poly.below(chondro)
chondro  <- chondro / rowSums(chondro)

plotmap (chondro [,,785], col.regions = alois.palette())
plotmap (chondro [,,785], col.regions = alois.palette(), panel = panel.2dsmoother, args = list (span = 0.05))

Interpolation isn't available as readily, as the interpolation functions do not follow the model - predict paradigm.
=>

  • either wrap interpolation into model + prediction

  • or derive panel.2dsmoother analogue that works with interpolation functions.

  • add smoothing explanation to plotting vignette

  • add interpolation to plotting vignette

  • add smoothing explanation to chondro vignette

@cbeleites cbeleites added Type: enhancement 🎈 asking for a new feature. Note: help wanted Status: ready ✔️ this issue can be tackled now Topic: documentation 📘 Related to hyperSpec's (non-vignette) documentation. Use a separate dag for vignettes. labels Apr 14, 2018
@cbeleites cbeleites added this to the Version 1.0 milestone Apr 14, 2018
@GegznaV GegznaV added the Topic: vignette 📗 Related to vignettes of hyperSpec label May 29, 2020
@GegznaV GegznaV removed the Topic: documentation 📘 Related to hyperSpec's (non-vignette) documentation. Use a separate dag for vignettes. label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Note: help wanted Status: ready ✔️ this issue can be tackled now Topic: vignette 📗 Related to vignettes of hyperSpec Type: enhancement 🎈 asking for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants