Comments (3)
Thanks, yes disabling the specified line works.
If you additionally mask the output raster before plotting, add r <- mask(r, inputstack[[1]])
after creating the object "r", there should also be no problem with the NAs in the resulting maps.
from embarcadero.
I'm also getting an issue with plot.mcmc both in the vignette and in my own project. I get the following error for all lines using it:
Error in plot.mcm(sdm.tiny, climate, iter = 100) : could not find function "plot.mcm"
I tried
embarcadero::plot.mcmc(sdm, climate, iter=5, quiet = TRUE)
as well, but that results in an error
Error: 'plot.mcmc' is not an exported object from 'namespace:embarcadero'
Was this function removed from the package?
from embarcadero.
Hi,
I was about to report the same issue. Now that @RS-eco mentions the matrix conversion, I found that the function seems to work properly if we disable the line input.matrix <- input.matrix[complete.cases(input.matrix),]
, to keep all NAs in their places. But I'm not sure what it's really doing with the NA pixels, as they are not NA and have different values in the resulting raster maps.
Also, there seems to be a disagreement in the name of the function (plot_mcmc.R
, but plot.mcmc <- function {...}
inside).
Otherwise it seems to work, thanks Colin for another great function!
from embarcadero.
Related Issues (20)
- "velox" was removed from CRAN HOT 2
- bart.flex doesn't allow prior adjusting
- Categorical variables not recognized HOT 3
- Dropped variable problem HOT 1
- Spatial covariates HOT 1
- velox dependency HOT 3
- Error in varim.diag "can't find `dropnames`" HOT 2
- cutoff value? HOT 2
- Conflicted "select" function between raster and dplyr. HOT 3
- Requiremed Number of Covariates HOT 1
- R version 4.0.5
- Error from `bart.step()` related to `select()` call HOT 2
- predict() gives completely flat prediction at 0.5 HOT 1
- Saved RI model objects may not retain saved trees HOT 4
- categorical variables mishandled by `varimp`, `variable.step`, `bart.step` HOT 4
- open thread: small vignette HOT 1
- Allow data frame y.data instead of vector
- Conservative partial plot extent
- add warning partial() doesn't work with rbart objects (yet) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embarcadero.