ococrook / bandle

An R package for Bayesian analysis of differential localisation experiments
https://ococrook.github.io/bandle/
5 stars 1 forks source link

Error with 'chord' plot #12

Closed TomSmithCGAT closed 2 years ago

TomSmithCGAT commented 2 years ago

With plotTranslocations(bandleres, type='chord'), I get Error in dev.off() : cannot shut down device 1 (the null device).

I can make it run using dev.set(dev.next()) first.

Is the following line needed? https://github.com/ococrook/bandle/blob/141c9b0cb929676db867be719d02ba791e5075d0/R/bandle-plots.R#L288

If so, should it be this instead? while (!is.null(dev.list())) dev.off()

lmsimp commented 2 years ago

Thanks very much @TomSmithCGAT will check this now