Comments (2)
The enrichment and hierarchy maps were initially intended for interactive visualization for redundant genesets but we are working on a high quality export solution for network figures. In the meantime there are a couple of things you could do.
- Use some of the
hyp_emap()
code to recreate anigraph
object for static plotting. This will let you fully customize your network figure and export to any resolution/format. - Save the output from
hyp_emap()
orhyp_hmap()
to a high resolution.
vn <- hyp_hmap(hyp)
vn <- visOptions(vn, width="5000px", height="5000px")
visNetwork::visSave(vn, "plot.html")
If you open the file in a web browser and immediately right-click / save, the network plot will be in high resolution, although not TIFF. With this route you can interactively adjust it before hand.
If you need to do this from a script - I've had some success with this snippet.
library(webshot)
if (Sys.which("phantomjs") == "") webshot::install_phantomjs()
tmp <- tempfile(fileext=".html")
vn <- hyp_hmap(hyp)
vn <- visOptions(vn, width="5000px", height="5000px")
visNetwork::visSave(vn, tmp)
webshot::webshot(tmp, selector=c("canvas"), zoom=1, file="plot.png")
Regarding the overlapping labels, you could interactively adjust the nodes to give them some more room. We can add a label trimming solution for these plots, but in the meantime you could simply pre-trim your geneset labels if they are long. Maybe subset on the first 16 characters?
from hyper.
This is addressed in the latest version, please refer to the documentation.
from hyper.
Related Issues (20)
- GSEA arguement not recognised hypeR HOT 1
- Error in conexion HOT 1
- quiet
- reactable should be "wider" HOT 1
- Duplicated gene symbols in the output of msigdb_download HOT 6
- sizes argument in hyp_dots function HOT 1
- error in GSEA about weighted signatures HOT 1
- How to get signetures enriched in a pathway? HOT 1
- hypeR-dot plots with KS test should incorporate directionality information
- KS with mx.diff=TRUE (GSVA-like)
- .check_overlap returns a fraction, not a percentage HOT 1
- Error in hyp_hmap HOT 2
- X-axis and Outputting Gene Overlap Size HOT 2
- rctbl_build does not work with method="ks" HOT 1
- .kstest needs to match ks.test (modulo the sign)
- MSigDB C7 retrieval fails
- rgsets does not support proper object "duplication" by value
- Hits names should be quoted (like in the csv format)
- Pushing to upstream on Bioc
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 hyper.