Giter Club home page Giter Club logo

Comments (7)

joshwlambert avatar joshwlambert commented on July 24, 2024 1

Feel free to write some plotting code, if you feel that the code is useful for the package once it is finished please make a pull request and if I agree it is useful it can be kept on the package. 😄

from daisiemainland.

joshwlambert avatar joshwlambert commented on July 24, 2024

Thank you for the idea of having these scenarios be made with a plotting functions in R. The picture pasted above is made using Tikz (latex). I have not attempted to write a plotting function for these in the past, and the I feel the pay-off of having them be produced in R is not worth the time input required to write what I believe would be a substantial amount of code.

from daisiemainland.

richelbilderbeek avatar richelbilderbeek commented on July 24, 2024

Thanks for the clear answer!

Would you mind to have some experimental plotting added if I do it? It will not be clean and it can well be non-exported, it is just that I could use it.

from daisiemainland.

richelbilderbeek avatar richelbilderbeek commented on July 24, 2024

Done!

Here is my favorite test:

test_that("interesting picture, with recolonisation", {
  set.seed(
    9,
    kind = "Mersenne-Twister",
    normal.kind = "Inversion",
    sample.kind = "Rejection"
  )
  mainland <- sim_mainland(
    total_time = 10,
    m = 10,
    mainland_ex = 1.0
  )

  # Clade goes extinct, but after island age
  mainland_clade <- mainland[[1]]
  plot_mainland_clade(mainland_clade)
  
  island <- sim_island(
    total_time = 1,
    island_pars = c(1, 1, 10, 12, 1),
    mainland = mainland_clade,
    mainland_sample_prob = 1,
    mainland_sample_type = "complete")
  plot_island(island)
})

The mainland clade (note that only until t = 1 is used):

Screenshot from 2021-12-05 21-11-30

The island:

Screenshot from 2021-12-05 21-11-43

from daisiemainland.

richelbilderbeek avatar richelbilderbeek commented on July 24, 2024

I am happy the pictures visualize all the info produced by sim_mainland and sim_island. Sure, they can be made more intuitive, but I need a closer look for that. Still, it is helpful that all information is visualized :-)

from daisiemainland.

joshwlambert avatar joshwlambert commented on July 24, 2024

Thanks for the new plotting functions. Can this issue be closed once the new code reaches main?

from daisiemainland.

richelbilderbeek avatar richelbilderbeek commented on July 24, 2024

Thanks for accepting! Sure, this Issue can be closed when it reaches main, or now :-)

from daisiemainland.

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.