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

Can't omit arrows #49

Open
ijhoskins opened this issue Jan 22, 2025 · 0 comments
Open

Can't omit arrows #49

ijhoskins opened this issue Jan 22, 2025 · 0 comments

Comments

@ijhoskins
Copy link

In the docs:

arrow.gap The gap distance between intermittent arrows. Default: NULL. Set arrow.num and arrow.gap to NULL to suppress intermittent arrows

However, if I set arrow.num and arrow.gap to NULL, I get the following error:

Error in ggplot_add.transcript(object, p, objectname): Please provide either arrow.num or arrow.gap!
Traceback:

1. `+.gg`(cov_gg + labs(title = fusion_name), geom_transcript(gtf.gr = trx_id_gr, 
 .     gene.name = gene_name, plot.height = 0.2, arrow.num = NULL, 
 .     arrow.gap = NULL))
2. add_ggplot(e1, e2, e2name)
3. ggplot_add(object, p, objectname)
4. ggplot_add.transcript(object, p, objectname)
5. stop("Please provide either arrow.num or arrow.gap!")
6. .handleSimpleError(function (cnd) 
 . {
 .     watcher$capture_plot_and_output()
 .     cnd <- sanitize_call(cnd)
 .     watcher$push(cnd)
 .     switch(on_error, continue = invokeRestart("eval_continue"), 
 .         stop = invokeRestart("eval_stop"), error = invokeRestart("eval_error", 
 .             cnd))
 . }, "Please provide either arrow.num or arrow.gap!", base::quote(ggplot_add.transcript(object, 
 .     p, objectname)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant