CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

Track-specific highlighting not possible anymore after update

Open erikstricker opened this issue 2 years ago • 1 comments

This is a great package I use frequently. I noticed that highlighting the markers for each track differently in a multitrack display is not working any more.

This was a plot I made on 04/01/2021: image

And this was the result when I tried again last week: image

This was the code, I used in both cases: CMplot(CRGHERV.ID.plot.without.na, plot.type="m",multracks=TRUE,threshold=c(p_cutoff),threshold.lty=c(1), threshold.lwd=c(1,1), amplify=TRUE, ylim=c(0,25), threshold.col=c("black","grey"), col=c("grey30","grey60"), signal.col=c("coral","green","cornflowerblue","orange"), signal.cex=1, file="jpg",memo="",dpi=300,file.output=TRUE,verbose=TRUE) Best, Erik

erikstricker avatar May 03 '23 15:05 erikstricker

Thank you for the feedback. Please refer to this issue #82. The first plot you attached above is actually incorrect because the colors used for different traits is not consistent between the legend and the bottom points. Please use the following script and try again:

CMplot(CRGHERV.ID.plot.without.na, plot.type="m", multracks=TRUE, threshold=c(p_cutoff), threshold.lty=c(1),
threshold.lwd=c(1,1), amplify=FALSE, ylim=c(0,25), col=c("coral","green","cornflowerblue","orange"), 
file="jpg", dpi=300, file.output=TRUE, trait.legend.pos="middle", verbose=TRUE)

Best, Lilin

YinLiLin avatar May 04 '23 07:05 YinLiLin