Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Green and Red columns inverted in controlStripPlot #209

Open
MGiulia opened this issue May 22, 2020 · 1 comment
Open

Green and Red columns inverted in controlStripPlot #209

MGiulia opened this issue May 22, 2020 · 1 comment

Comments

@MGiulia
Copy link

MGiulia commented May 22, 2020

Hi,
I noted that the plots produced by the controlStripPlot function have inverted colors (dots in the Green column are coloured in red and viceversa).

Rplot

These are my session info:
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.3
minfi_1.34.0

Please note that with previous versions of R and minfi this issue did not occur. For example, using the same input data but R 3.3.6 and minfi_1.32.0, I previously achieved this plot:
immagine

Thank you a lot!
MGiulia

@Mike-L-V
Copy link

I have the same problem my guess is some update changed how things are ordered so now Green is plotted before Red, maybe because it's alphabetical? I believe the column labels are correct and the colors are wrong. The controlStripPlot function manually specifies colors so if the plotting order changed the colors won't match any more. At the end of the function in the plotting section where it says col = c("darkred", "darkgreen") if you reverse the colors it'll plot properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants