emmanuelparadis / pegas

Population and Evolutionary Genetics Analysis System
GNU General Public License v2.0
28 stars 10 forks source link

Problems with replot function #74

Closed Juanphg closed 2 years ago

Juanphg commented 2 years ago

Hello, I'm plotting some haplotype networks, but when trying to use the replot () function, it is not working properly. When I try to click on a node, it is selecting a different one (see image attached). Apparently, the selection is moved on the X axis towards the left and on the Y upwards, which makes it really hard to organize a plot with many nodes. I'm currently using pegas 1.1 and R 4.2.1. I have also tried with 1.0.3. Last time I used the replot() function was with pegas 1.0.2 and worked properly (don't remember which R version, probably >3.6), but this version is not available in any of the repositories. Could it be an issue with the R version?

image Thanks in advance for your help, Kind regards, Juan Pablo

emmanuelparadis commented 2 years ago

Hi, I've just tried with (which worked fine):

library(pegas)
example(haploFreq)
plot(nt, size = fq, pie = f.loc, labels = FALSE)
xy <- replot()

Can you try this? My versions:

R> packageVersion("pegas")
[1] ‘1.1.2’
R> R.version.string
[1] "R version 4.2.1 (2022-06-23)"
Juanphg commented 2 years ago

Hi, Thanks for your reply. By looking back on github I just saw that my problem is that I'm working on Rstudio. Now I have tried using Emacs with the ESS extension and is working perfectly, pegas 1.1 (CRAN version) . Thanks for your help, juan

El jue, 1 sept 2022 a la(s) 14:21, Emmanuel Paradis ( @.***) escribió:

Hi, I've just tried with (which worked fine):

library(pegas)

example(haploFreq)

plot(nt, size = fq, pie = f.loc, labels = FALSE) xy <- replot()

Can you try this? My versions:

R> packageVersion("pegas")

[1] ‘1.1.2’ R> R.version.string

[1] "R version 4.2.1 (2022-06-23)"

— Reply to this email directly, view it on GitHub https://github.com/emmanuelparadis/pegas/issues/74#issuecomment-1234204617, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2OVKEL5DHMRTW6HNOTQP3V4CNTXANCNFSM6AAAAAAQCDSBPI . You are receiving this because you authored the thread.Message ID: @.***>

--


Juan Pablo Hurtado Gómez Biólogo, Msc. e-mail: @.***