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

ggwithinstats needs to have an argument to specify rowid #439

Closed
IndrajeetPatil opened this issue Jun 16, 2020 · 1 comment
Closed

ggwithinstats needs to have an argument to specify rowid #439

IndrajeetPatil opened this issue Jun 16, 2020 · 1 comment
Labels
bug 🐜 Something isn't working

Comments

@IndrajeetPatil
Copy link
Owner

Currently, the function internally assumes that data is already sorted by identifier for repeated subjects design

# create data
# deliberately change the order of participant id
df <-
  tibble::tribble(
    ~time, ~rating, ~id,
    "before", 1, 1,
    "before", 2, 2,
    "before", 3, 3,
    "before", 4, 5,
    "before", 5, 4,
    "after", 5, 1,
    "after", 4, 2,
    "after", 3, 3, 
    "after", 2, 4,
    "after", 1, 5
  )

# data for id 4 from before is linked to data for id 5 in after
library(ggstatsplot)
ggwithinstats(df, time, rating)

Created on 2020-06-16 by the reprex package (v0.3.0)

@IndrajeetPatil IndrajeetPatil added the bug 🐜 Something isn't working label Jun 16, 2020
@IndrajeetPatil
Copy link
Owner Author

Closing in favor of #483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐜 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant