iCellR icon indicating copy to clipboard operation
iCellR copied to clipboard

gg.cor produces incorrect plots

Open rohitrrj opened this issue 1 year ago • 0 comments

Thank you for the great package. I have noticed the implementation of gg.cor produces incorrect results! eg. When you provide gene1 = "TCF7" and gene2 = "IFNG", it will produce an identical plot as gene1 = "IFNG" and gene2 = "TCF7"

I believe this is a result of using "subset" function which sorts the data frame and you "hard-code" the columns used for x and y in the ggplot function.

rohitrrj avatar Jul 21 '22 17:07 rohitrrj