Comments (1)
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
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 evam-tools.