rhcaeb / QFC-course

Programming Fundamentals Using R
0 stars 0 forks source link

complete application 2-9 #21

Closed rhcaeb closed 4 years ago

rhcaeb commented 4 years ago

Application 2-9

Notes

Pending review @belinskyc

belinskyc commented 4 years ago

Looks good -- I might add ylim = c(0,4.5) to part 1 so that the values on top of the bars do not get cut off.

Also, if you want to have some fun, use color codes instead of color. Color codes are based on red-green-blue light colors and give you access to every possible color the a computer can produce. The colors are written as: rgb(red, green, blue), with red, green, and blue being values from 0 (fully off) to 1 (fully on). The setting of colors is not intuitive because it is light colors, where red and green make yellow. https://en.wikipedia.org/wiki/Color_mixing

rgb(1,1,1) # white rgb(0,0,0) # black rgb(0.5, 0.5, 0.5) # gray rgb(1,1,0) # yellow rgb(1,0.5,0) # orange