Closed Luaaalex closed 6 months ago
Hello @Luaaalex I believe the intention behind the exercise was to firstly execute the suggested code:
ggplot(
data = penguins,
mapping = aes(
x = bill_length_mm, y = bill_depth_mm,
color = species, shape = species
)
) +
geom_point() +
labs(color = "Species")
Obtaining the following output:
Which indeed have two legends as stated in the exercise and then correct it:
ggplot(
data = penguins,
mapping = aes(
x = bill_length_mm, y = bill_depth_mm,
color = species, shape = species
)
) +
geom_point()
Indeed @davidrsch's explanation is correct, thanks!
See that the code offered is already correct. The code did not repet the color = specie, shape = specie.