Question: Read the papers Color codingLinks to an external site. and Mapping quantitative data to colorLinks to an external site. by Nils Gehrenborg and Bang Wong

Read the papers "Color codingLinks to an external site." and "Mapping quantitative data to colorLinks to an external site." by Nils Gehrenborg and Bang Wong published in Nature Methods in August 2010 and 2012. In class, we have started to talk about ggplot2.

Answer the following question:

a) By default, how does ggplot2 handle color mapping of quantitative and qualitative variables? Give an example.

b) ColorBrewer gives different choices of color schemes. Describe the difference between a gradient, a divergent and a qualitative scheme. Give data examples for each one of these schemes.

Using + scale_colour_brewer(palette="put scheme name here") as an addition to a ggplot2 chart allows us to use colour brewer schemes. Modify your example in (a) and show your code.

Need the examples for the Graphs code in R not sure what can be a simple example for each. Need basic examples

Step by Step Solution

3.51 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

QUESTION Read the papers Color codingLinks to an external site and Mapping quantitative data to colo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!