Open joelostblom opened 3 years ago
Hi @joelostblom! In general, it is possible to specify which variables goes where by passing the spec as ggplot2 code, as in this example from the README:
"small_salary %>%
group_by(Work, Degree) %>%
summarize(mean_salary = mean(Salary)) %>%
ggplot(aes(x = Work, y = mean_salary)) +
geom_point() +
facet_grid(rows = vars(Degree))" %>%
datamation_sanddance()
As to your question about dropping one of the summarized values - right now we only support a single summarized value. There is an issue open for this (#53) so is definitely on our minds as a limitation!
I am trying to replicate a plot like this from altair/vega:
I thought something like this might do it, but it keeps the grouped variable on the x-axis instead of assigning it to the color, and also drops one of the summarized variables. Is it possible to specify which variable should go where?