library("ggplot2")
ggplot(mtcars) +
geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
facet_wrap(~am) +
theme_calc() +
scale_color_calc()
if (FALSE) {
ggplot(mtcars) +
geom_point(aes(x = wt, y = mpg, shape = factor(gear))) +
facet_wrap(~am) +
theme_calc() +
scale_shape_calc()
}
Run the code above in your browser using DataLab