Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Manhattanly plot to png/pdf/... #16

Open
sahirbhatnagar opened this issue Oct 11, 2017 · 0 comments
Open

Export Manhattanly plot to png/pdf/... #16

sahirbhatnagar opened this issue Oct 11, 2017 · 0 comments

Comments

@sahirbhatnagar
Copy link
Owner

This shows how to export a manhattanly plot to a static graph. This requires signing up for a free plotly account

library(plotly)
library(manhattanly)
Sys.setenv("plotly_username" = "user_name")
Sys.setenv("plotly_api_key" = "api_key")
p <- manhattanly::manhattanly(subset(HapMap, CHR %in% 4:7), snp = "SNP", gene = "GENE")
Pdf <- plotly::plotly_IMAGE(p, format = "pdf", out_file = "output.pdf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant