Closed
Description
Code
For some reason the boxplot layer isn't able to have a continuous variable (other than the one used to define the group, e.g., x
in the plot below):
ggplot2::ggplot(
mtcars,
ggplot2::aes(x = factor(cyl), y = hp, color = hp)
) +
ggplot2::geom_point() +
ggplot2::geom_boxplot(outliers = FALSE) +
ggplot2::facet_wrap(gear ~ am)
Warning on plot
> ggplot2::ggplot(
+ mtcars,
+ ggplot2::aes(x = factor(cyl), y = hp, color = hp)
+ ) +
+ ggplot2::geom_point() +
+ ggplot2::geom_boxplot(outliers = FALSE) +
+ ggplot2::facet_wrap(gear ~ am)
Warning: The following aesthetics were dropped during statistical transformation: colour.
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into
a factor?
Warning: The following aesthetics were dropped during statistical transformation: colour.
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into
a factor?
Warning: The following aesthetics were dropped during statistical transformation: colour.
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into
a factor?
Warning: The following aesthetics were dropped during statistical transformation: colour.
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into
a factor?
Metadata
Metadata
Assignees
Labels
No labels