Hi Not sure if I got the question right. But I will try to give you a generic answer and hope that it covers what you wanted to ask... 1. Type the colours() command and it gives you a list of all the colours listed in the terminal window. 2. Copy all these values from tthe terminal window and copy them in your script and then you are able to see the actual colours also, which makes it easy to choose the colour which you want. 3. In order to use the colours you have two choices, eg. if you want all the points to be of the same colour then you can set the colour outside the aesthetics. If you want the colour to be different based on some other grouping then give the colour command within the aesthetics eg . aes (colour = gender), this was each gender will get different colour. and then you can have another line to specify the colours eg. scale_colour_manual(values = c('red', 'blue')) Hope this is what you initially wanted to ask. Let me know if I haven't been able to answer you question. All the best.
Great video.
What was the procedure for getting the entire list of base r colours to change colour?
Hi, to see the entire lists of colors simpy type the command colors()
@@DataAnalytic Thanks. I meant getting the list of colour names from the colour() function output to then change colour?
Hi
Not sure if I got the question right. But I will try to give you a generic answer and hope that it covers what you wanted to ask...
1. Type the colours() command and it gives you a list of all the colours listed in the terminal window.
2. Copy all these values from tthe terminal window and copy them in your script and then you are able to see the actual colours also, which makes it easy to choose the colour which you want.
3. In order to use the colours you have two choices, eg. if you want all the points to be of the same colour then you can set the colour outside the aesthetics. If you want the colour to be different based on some other grouping then give the colour command within the aesthetics eg . aes (colour = gender), this was each gender will get different colour. and then you can have another line to specify the colours eg. scale_colour_manual(values = c('red', 'blue'))
Hope this is what you initially wanted to ask. Let me know if I haven't been able to answer you question.
All the best.
@@DataAnalytic Thankyou very much for the detailed reply. That's exactly what I was after (and more). Cheers