Day 5 : I'll wait for you, but there's a quiz

Looks like some of you are still catching up with what we've learned over the week

I know this because some of you haven't opened the last couple of emails. (Almost half of you 👀)

So, I'll help you catch up a bit (don't worry I'm still learning ahead 😬)

but...

I understand that work, study and life put together can get hectic

I've decided to keep this day as a buffer so you can catch-up on past emails

However...

I also know that some of you have been staying on track till today and for you?

I have a simple quiz

What's the difference between

ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g)) +
geom_point(aes(color = species, shape = species)) +
geom_smooth(method = "lm")

and

ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, color = species, shape = species)) +
geom_point() +
geom_smooth(method = "lm")

Tip:

The answer may be easy to identify when you run the code but... try to think why the graph output differs from a simple change in the code like this

I spent some time thinking about it. I was confused, but then it hit me!

I'd like you to do the same ;)

Previous
Previous

Day 6: Change your graph type with this one tweak

Next
Next

Day 4: Plotting using colour and shapes