Aprenda o básico sobre ggplot2 neste tutorial simples
Equipe EKIO Academy
20 de janeiro de 2024
library(ggplot2)
ggplot(data = mtcars, aes(x = mpg, y = wt)) + geom_point() + labs( x = "MPG", y = "Weight", title = "Scatter Plot", subtitle = "MPG vs Weight", caption = "Data: Motor Trend Magazine (1974) | EKIO Analytics" ) + theme_minimal(base_size = 12)
ggplot(data = mtcars, aes(x = mpg, y = wt)) + geom_point() + geom_smooth(method = "lm")