GithubHelp home page GithubHelp logo

Comments (3)

RS-eco avatar RS-eco commented on June 23, 2024 1

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.

kendrag-csu avatar kendrag-csu commented on June 23, 2024 1

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.

AMBarbosa avatar AMBarbosa commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.