Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Add and Customize Legends to Plots in R | R Tutorial 2.11| MarinStatsLectures

115.7K views on YouTube

Add and Customize Legends in Plots with R: How to add a legend to plots made in R and change the symbols/characters used in the legend as well as the look and location of the legend. 👉🏼 Free Practice Dataset (LungCapData) here: (https://bit.ly/2rOfgEJ)
👍🏼Best Statistics & R Programming Language Tutorials: ( https://goo.gl/4vDQzT )

►► Like to support us? You can Donate (https://bit.ly/2CWxnP2), Share our Videos, Leave us a Comment and Give us a Like! Either way We Thank You!

Sometimes two or more groups of observations are displayed on a single plot. Legends help us identify each set; they make reading and interpreting graphs easier. In this R video tutorial, we will learn how to add legends to plots made in R and change the symbols/characters used in the legends as well as the look and location of the legends. This R tutorial explains how to use the “legend” fucntion, and the “fill”, “col”, “bty”, “pch” and “lty” arguments in R programming software for creating and customizing legends in R.

These video tutorials are useful for anyone interested in learning data science and statistics with R programming language using RStudio.

► ► Watch More:

► Intro to Statistics Course: https://bit.ly/2SQOxDH
►Data Science with R https://bit.ly/1A1Pixc
►Getting Started with R (Series 1): https://bit.ly/2PkTneg
►Graphs and Descriptive Statistics in R (Series 2): https://bit.ly/2PkTneg
►Probability distributions in R (Series 3): https://bit.ly/2AT3wpI
►Bivariate analysis in R (Series 4): https://bit.ly/2SXvcRi
►Linear Regression in R (Series 5): https://bit.ly/1iytAtm
►ANOVA Concept and with R https://bit.ly/2zBwjgL
►Hypothesis Testing: https://bit.ly/2Ff3J9e
►Linear Regression Concept and with R Lectures https://bit.ly/2z8fXg1

Follow MarinStatsLectures

Subscribe: https://goo.gl/4vDQzT
website: https://statslectures.com
Facebook:https://goo.gl/qYQavS
Twitter:https://goo.gl/393AQG
Instagram: https://goo.gl/fdPiDn

Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)

These videos are created by #marinstatslectures to support some courses at The University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials for Health Science Research), although we make all videos available to the everyone everywhere for free.

Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!