Coder Social home page Coder Social logo

Comments (1)

rdiaz02 avatar rdiaz02 commented on August 21, 2024

And it should also include the paths (transitions) between genoytpes:

plot_hypercube_transitions <- function(x, main = "") {
    obj <- list(edges = x,
                parent_set = evamtools:::parent_set_from_edges(x))
    tmat <- as.matrix(evamtools:::cpm2tm(obj)$trans_mat_genots)
    evamtools:::plot_genot_fg(tmat, plot_type = "trans_mat")
  }
  
So we can do
  pdf(file = "true_models.pdf", width = 11, height = 11)
  par(mfrow = c(2, 2))
  par(oma = c(2, 2, 2, 2))
  plot_model(dag1)
  plot_model(dag2)
  plot_hypercube_transitions(dag1)
  title("dag1: \nTrue transitions between genotypes")
  plot_hypercube_transitions(dag2)
  title("dag2: \nTrue transitions between genotypes")
  dev.off()

from evam-tools.

Related Issues (7)

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.