Hi,
How do I make a scatter plot with a filled triangle, filled circle, and filled upside down triangle shapes with scale_shape_manual?
I've got close, but can't work out how to get them filled in.
library(palmerpenguins)
library(tidyverse)
p <- penguins |>
ggplot() +
geom_point(
aes(x = flipper_length_mm,
y = body_mass_g,
colour = species,
shape = species)
)
p +
scale_shape_manual(values = c(24, 19, 6))
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).
Created on 2024-03-01 with reprex v2.1.0