Thank you so much, I was looking for exactly this. Very well explained, I'd love to know what's the other method you mention to make it in a more elegant way.
Usually, the y-axis label would summarise both data sets (e.g. "GDP") and a legend (e.g. different colours for different countries) would be used, as shown at 3:45.
@@michaelgastner thank you for the reply. I wanted to clarify, if after using points function, is there any way to update the Y axis labels. I am fairly new to R, and was plotting height and weight on Y axis, with age on X axis. So after using the points function for weight, how do i update the y axis labels to show "weight,height". I am doing the legend as well, but not sure on how to show it in the y axis
Thank you so much, I was looking for exactly this.
Very well explained, I'd love to know what's the other method you mention to make it in a more elegant way.
Thank you for this very clear explanation. If I want to add 2 labels to Y axis, for eg, "GDP of US, GDP of USSR" how do I do it.
Usually, the y-axis label would summarise both data sets (e.g. "GDP") and a legend (e.g. different colours for different countries) would be used, as shown at 3:45.
@@michaelgastner thank you for the reply. I wanted to clarify, if after using points function, is there any way to update the Y axis labels. I am fairly new to R, and was plotting height and weight on Y axis, with age on X axis. So after using the points function for weight, how do i update the y axis labels to show "weight,height". I am doing the legend as well, but not sure on how to show it in the y axis
@@soulwriterqa2363 You can change the y-axis label with the argument ylab in plot(). For more complex layouts, there is also a function axis().
Thank You so much for such clear explanation..
Thank you for the interesting video! :)
Thanks 👏🏼