Shians / Glimma

Glimma R package
GNU Lesser General Public License v3.0
50 stars 10 forks source link

Easy way to adjust order of groups in top right plot of glMDPlot? #148

Open jdrnevich opened 6 years ago

jdrnevich commented 6 years ago

I have a factor group for my samples where the samples are not in the same order as the levels:

group [1] s61 s61 s61 s63 s63 s63 SCR SCR SCR Levels: SCR s61 s63

when I call glMDPlot:

glMDPlot(s61.vs.SCR.sv, counts = logCPM, groups = group, status = decideTests(s61.vs.SCR.sv))

the order of the groups in the top right plot of individual sample values seems to default to unique(group) . Could this be changed to levels(group) so that I could adjust the order by re-leveling instead of having to re-order both logCPM and group?

Thanks!

Shians commented 6 years ago

Yes that would probably be the better behaviour.

dan-scholar commented 6 years ago

Hi Shian,

I have the above issue with version 1.6.0, but with version 1.7.1 samples no longer match up with their levels(group) on the top right plot?