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

pirateplot does not handle sub IVs with different number of levels correctly #36

Open
thohag opened this issue Feb 4, 2017 · 2 comments

Comments

@thohag
Copy link

thohag commented Feb 4, 2017

Example:
dat=data.frame(IV1=rep(c(1,2,1,2,3),each=3),IV2=rep(c(1,1,2,2,2),each=3),DV=runif(5*3))
pirateplot(DV~IV1+IV2,dat)

This also leads to an error if inf.method="ci".
pirateplot(DV~IV1+IV2,dat,inf.method="ci")

@ndphillips
Copy link
Owner

Thanks for catching this. I believe I have fixed it. Please install version 0.1.5 from github with devtools::install_github("ndphillips/yarrr") and let me know if it works correctly.

@rentzb
Copy link

rentzb commented Apr 10, 2017

I think I'm having the same issue but with a third IV. I installed the newest version from github and it is still and issue. Only the levels that all three IVs share (ie., only levels 1 and 2 of IV2 and not levels 3 and 4) are plotted. This wasn't an issue with earlier versions of pirateplot().

dat=data.frame(IV1=rep(c(1,2,1,2,1,1,2,1,2,1,2,1,1,2),each=3),IV2=rep(c(1,2,1,2,3,4,1,2,3,3,1,2,2,2),each=3),IV3=rep(c(1,1,2,2,2,2,3,3,3,3,3,3,3,3),each=3),DV=runif(14*3)) pirateplot(DV~IV1+IV2+IV3,dat,inf.method="hdi",theme=2,avg.line.fun = median)

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

3 participants