R-Studio Tutorial: Adding a custom legend to a plot with multiple elements

preview_player
Показать описание
In this #tutorial we will discover together how to add a legend to a plot with multiple elements.

For the original tutorial on how to create multiple lines in one plot go to this video:

For all videos related to GGPlot check out this playlist:
Рекомендации по теме
Комментарии
Автор

Thank you so much for uploading follow-up videos for legends. It helped me with my university assignment!!!!

AnuragGaonkar
Автор

Thank so soooo much, I spent hours looking for a way to create a legend using my data and everywhere I looked they never explained how to addapt my data so that the coding works. Thank you :)

sofialeitao
Автор

Thanks, really helped solve an issue I had

michaelogunmakin
Автор

Thanks so much for this update! Its perfect and great that you optimize this, you rock mannn!

remyxi
Автор

How can I change the name of the legend from "colour" to "population"?

matthewholmes
Автор

Legend doesn't appear automatically

thatgoanguy
Автор

I have a problem with my code. I used what you taught in this video and added this: +scale_color_discrete(name="Legenda", labels=c("Nº de gaivotas adultas", "Nº de gaivotas juvenis", "Nº total de gaivotas")) to change the name of the tittle of the legend, but the colours I chose dissapeard and now it has the original automatic colours. How do I get the colours I want back??? Please help!

sofialeitao
Автор

Can you create a video where we also change the shape of points and match them along with the legend?

iaikitkuparlyngdoh
welcome to shbcf.ru