Table of Contents
Scatter Plot (geom_point)
Code
ggplot(mtcars, aes(x = mpg, y = wt)) +geom_point(color = "darkblue", size = 3) +ggtitle("MPG vs Weight")
Copy
Line Chart (geom_line)
Code
ggplot(mtcars, aes(x = seq_along(mpg), y = mpg)) +
geom_line(color = "green", linewidth = 1) +
ggtitle("Line Chart of MPG")
Copy
...
[Read more...]