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

plot estimate_density when group_by is vector #118

Open
DominiqueMakowski opened this issue May 10, 2021 · 0 comments
Open

plot estimate_density when group_by is vector #118

DominiqueMakowski opened this issue May 10, 2021 · 0 comments
Labels
Bug 🐛 Something isn't working

Comments

@DominiqueMakowski
Copy link
Member

library(see)
library(bayestestR)


df <- estimate_density(iris, group_by = "Species")
plot(df)

df <- estimate_density(iris[c("Species", "Petal.Width")], group_by = "Species")
plot(df)

df <- estimate_density(iris$Petal.Width, group_by = iris$Species)
plot(df)
#> Error in `$<-.data.frame`(`*tmp*`, "Parameter", value = structure(integer(0), .Label = character(0), class = "factor")): replacement has 0 rows, data has 3072

Created on 2021-05-10 by the reprex package (v1.0.0)

In the case where a vector is passed for the input and for the group_by, the plot currently errors. Should we plot the group as colors in this case? Or as facets?

@DominiqueMakowski DominiqueMakowski added the Bug 🐛 Something isn't working label May 10, 2021
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