geom_rect() and geom_tile() do the same thing, but are parameterised differently: geom_tile() uses the center of the tile and its size (x, y, width, height), while geom_rect() can use those or the locations of the corners (xmin, xmax, ymin and ymax). geom_raster() is a high performance special case for when all the tiles are the same size, and no pattern fills are applied. geom_raster( mapping = N

