We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
data_tabulate()
Asked in easystats/datawizard#419
It would be nice to have a plot method to do this:
library(ggplot2) library(datawizard) # Data Tabulate ## Desired input dt <- data_tabulate(mpg, select = c("cyl", "drv")) ### Option 1: plot(dt) ### Option 2: data_tabulate(mpg, select = c("cyl", "drv"), plot = TRUE) ## Desired output mpg |> data_select(select = c("cyl", "drv")) |> data_to_long() |> ggplot(aes(x = value)) + facet_wrap(~name, scales = "free") + geom_bar()
Created on 2023-05-22 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
@strengejacke I feel like this is very close to sjlabelled::plot_frq(), maybe there's a way to simply reuse this code?
sjlabelled::plot_frq()
Sorry, something went wrong.
I wrote sjPlot years ago, I don't think we want to use that code 😉
data_tabulate
Successfully merging a pull request may close this issue.
Asked in easystats/datawizard#419
It would be nice to have a plot method to do this:
Created on 2023-05-22 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: