Warning: Removed 2 rows containing missing values or values outside the scale range
(`geom_bar()`).
ggplot(mtcars) +
geom_point(aes(disp, mpg, colour=factor(gear))) +
scale_colour_manual(values=colorspace::deutan(2:4))library(ggforce)
ggplot(mtcars, aes(disp, mpg)) +
geom_mark_hull(aes(fill=factor(gear), label=gear)) +
geom_point() +
theme(legend.position="none")ggplot(mtcars) +
geom_point(aes(disp, mpg)) +
labs(title="Fuel Efficiency (in the 1970s)") +
xlab(expression(paste("Engine Displacement (", "in"^3, ")"))) +
ylab("Miles per Gallon")ggplot(mtcars) +
geom_point(aes(disp, mpg)) +
labs(title="Fuel Efficiency",
subtitle="(in the 1970s)") +
xlab(expression(paste("Engine Displacement (", "in"^3, ")"))) +
ylab("Miles per Gallon") +
theme(plot.title=element_text(size=18))ggplot(mtcars) +
geom_point(aes(disp, mpg)) +
theme_minimal() +
theme(panel.grid.major=element_blank(),
panel.grid.minor=element_blank())