How can I indicate the percentage in a Chi-squared test

How can I indicate the percentage in a Chi-squared test in this case?

library(ggplot2)

table(df$empresa,df$delphinideo)
prop.table(table(df$empresa,df$delphinideo))

tc_emprexdelphinideo <- table(df$empresa,df$delphinideo)

chisq_emprexdelphinideo <- chisq.test(tc_emprexdelphinideo)
chisq_emprexdelphinideo

install.packages("vcd")
library(vcd)

mosaic(~ empresa + delphinideo,
direction = c("v", "h"),
data = df,
shade = TRUE)

chi_quadromosaico

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.