Skip to content

plot estimate_density when group_by is vector #118

@DominiqueMakowski

Description

@DominiqueMakowski
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?

Metadata

Metadata

Assignees

Labels

Bug 🐛Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions