Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 6 from 1.5.5 - Incorrect Code #1634

Open
Luaaalex opened this issue Feb 20, 2024 · 1 comment
Open

Exercise 6 from 1.5.5 - Incorrect Code #1634

Luaaalex opened this issue Feb 20, 2024 · 1 comment

Comments

@Luaaalex
Copy link

See that the code offered is already correct.
The code did not repet the color = specie, shape = specie.

@davidrsch
Copy link
Contributor

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:
image

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()

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants