Fundamental Geoms

Area Plot

ggplot(mpg, aes(x, y)) + 
  geom_area(fill = "lightblue", color = "black") +
  ggtitle("Area Plot")

Bar Chart

ggplot(df, aes(x, y)) + 
  geom_bar(stat = "identity", fill = "blue") +
  ggtitle("Bar Chart")

Line Plot

ggplot(df, aes(x, y)) + 
  geom_line(color = "red") +
  ggtitle("Line Plot")

Scatterplot

ggplot(df, aes(x, y)) + 
  geom_point(size = 3, color = "purple") +
  ggtitle("Scatterplot")

Polygon Plot

ggplot(df, aes(x, y)) + 
  geom_polygon(fill = "lightgreen", color = "black") +
  ggtitle("Polygon Plot")

Tile Plot

ggplot(df, aes(x, y)) + 
  geom_tile(fill = "orange") +
  ggtitle("Tile Plot")

Text Annotation

ggplot(df, aes(x, y, label = label)) + 
  geom_text(size = 5, color = "black") +
  ggtitle("Text Plot")