-
Notifications
You must be signed in to change notification settings - Fork 190
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
Statistical report not appearing #960
Comments
Can you please provide a reproducible example? I don't know what |
I can't reproduce this behaviour. What version of ausencia_desl1 <- rep("Deslocamento 1", 456)
ausencia_desl2 <- rep("Deslocamento 2", 321)
ausencia_desl3 <- rep("Deslocamento 3", 339)
ausencia_desl4 <- rep("Deslocamento 4", 334)
presenca_desl1 <- rep("Deslocamento 1", 392)
presenca_desl2 <- rep("Deslocamento 2", 295)
presenca_desl3 <- rep("Deslocamento 3", 299)
presenca_desl4 <- rep("Deslocamento 4", 359)
deslocamentos <- c(
ausencia_desl1,
ausencia_desl2,
ausencia_desl3,
ausencia_desl4,
presenca_desl1,
presenca_desl2,
presenca_desl3,
presenca_desl4
)
VD <- factor(c(rep("ausência", 1450), rep("presença", 1345)))
set.seed(123)
deslocamentos <- sample(deslocamentos)
VD <- sample(VD)
det2019 <- data.frame(VD, deslocamentos)
library(ggstatsplot)
ggbarstats(
data = det2019,
x = VD,
y = deslocamentos
) Created on 2024-09-29 with reprex v2.1.1
|
I'm using the same version as you. I'm attaching my files, if it helps. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even though the function to report the statistical test results is activated (results.subtitle = TRUE), the results do not appear in all graphs. In some, they do not appear for no apparent reason. Below is the code I am using:
ggstatsplot::ggbarstats(
data = det2019,
x = VD,
y = deslocamento,
xlab = "Deslocamentos",
ylab = "Percentual",
digits.perc = 1,
label.text.size = 4,
package = "wesanderson",
palette = "Royal1",
messages = FALSE,
bf.message = FALSE,
results.subtitle = TRUE,
proportion.test = FALSE) +
theme(legend.position = "bottom")
The text was updated successfully, but these errors were encountered: