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

showsp= FALSE does not turn off the strip panel #75

Open
AliciaMstt opened this issue Feb 10, 2021 · 2 comments
Open

showsp= FALSE does not turn off the strip panel #75

AliciaMstt opened this issue Feb 10, 2021 · 2 comments
Labels
bug Incorrect results

Comments

@AliciaMstt
Copy link

Hi,

I'm trying to turn off the strip panel of one of my plots. Unless I'm getting something wrong, according to the manual this is done with showsp= FALSE. But this doesn't seem to work. Below an reproducible example, but the same happens with my own data:

# use ADMIXTURE files (do not use this command to read local files)
afiles<- list.files(path=system.file("files/admixture",package="pophelper"), full.names=T)
alist <- readQ(files=afiles)

# plot
p3<-plotQ(alist[1], 
          returnplot=T,
          exportplot=F,
          sortind = "all", divsize = 1.5, showsp = FALSE,
          exportpath = getwd())
plot(p3$plot[[1]])

And what I get:

image

I noticed that I would get rid of the strip text with splab="" so I got what I wanted, but I wanted to let you know in case this is a bug.

I'm running:

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6
pophelper_2.3.1

(yes I hate upgrading, let me know if that is related)

@SAHerron
Copy link

I am having this same problem with R version 4.0.4 (2021-02-15), pophelper_2.3.1

@royfrancis royfrancis added the bug Incorrect results label Mar 1, 2021
@royfrancis
Copy link
Owner

Yes. I can reproduce this. It is probably due to a change in ggplot2. Here is a solution.

p3$plot[[1]] + theme(strip.text.y=element_blank())

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

No branches or pull requests

3 participants