Comments (2)
Hi, not sure I fully understand - might be useful to post some of your code. In general, it is definitely possible to change the fill/color of links, for example:
gggenomes(emale_genes) %>% add_clusters(emale_cogs) +
geom_link(aes(fill=cluster_id))
Assuming you know that and tried something with add_clusters()
, one issue you might have come across is that the following doesn't work, i.e. metadata associated with clusters is not added to links. Then you would be quite right, that should work. I'll try to add that soon.
emale_cogs
gggenomes(emale_genes) %>% add_clusters(emale_cogs) +
geom_link(aes(fill=cluster_size))
### FAILS
A quick workaround could be to replace cluster_id
in your cluster data.frame with whatever labels you want to color your links by:
# just randomly assign for coloring example
emale_cogs2 <- emale_cogs %>%
mutate(cluster_id = sample(c("many", "single"), length(cluster_id), replace = T))
gggenomes(emale_genes) %>% add_clusters(emale_cogs2) +
geom_link(aes(fill=cluster_id))
from gggenomes.
Thank you very much!
from gggenomes.
Related Issues (20)
- Overlapping text lables HOT 2
- Error in `geom_link()`: HOT 7
- geom_feat size and position not responding HOT 3
- geom_link new error HOT 2
- Strand error when call gggenome()
- Submission for JOSS?
- Errror while installing HOT 1
- ggplot2 error using example data HOT 6
- Installation error HOT 3
- fill and fontface otions for geom_gene_label HOT 4
- Move deps from Depends to Imports? HOT 1
- Adding UTRs in the plot HOT 3
- Genes do not start and end at the expected positions HOT 2
- Setting coordinates to visualise part of the genome HOT 1
- shitf() "unused argument" HOT 2
- geom_gene() doesn't work HOT 5
- Errors when running read_feats command HOT 3
- Change space between seqs within the same bin HOT 5
- Changing gene colours HOT 2
- ! Required column(s) missing: • length 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 gggenomes.