Maybe you're looking for faceting?
library(tidyverse)
data(Cars93, package = "MASS")
ggplot(data = Cars93, aes(MPG.city, Horsepower)) +
geom_point() +
facet_wrap( ~ Origin)

The generic format is:
ggplot(df, aes(x, y)) +
geom_point() +
facet_wrap( ~ f)
where df is your data frame, x and y are your data field for the x and y fields and f is a factor (or character) field that defines the facets.
Created on 2019-01-10 by the reprex package (v0.2.1)