Imagine you are a research assistant in a lab that studies the evolution of sleep and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Imagine you are a research assistant in a lab that studies the evolution of sleep and the brain by looking at different animal species. A postdoctoral researcher in the lab shares shared with you the following graph that they made: sleep_rem 6- 2- 0- 10 sleep_total 15 20 msleep %>% ggplot(aes(x = sleep_total, y = sleep_rem, color geom_point() + theme_bw() vore carni herbi insecti omni On this graph, the points each represent a different species of mammal (like barn owls, donkeys, or baboons). The graph is meant to help compare the total hours of any sleep that animals in a species typically get in a day with the number of hours of REM sleep that animals in a species typically get in a day. The color of the points represents what kinds of "-vore" a species is: is it a carni-vore, herbi-vore, omni-vore, or insecti-vore? The postdoctoral researcher even shares the R code they used to make this graph: vore)) + This graph is decently pretty and shows a lot of information, but the graph isn't as useful if you print it out in black and white. Because of this, the postdoctoral researcher also created a second graph, it looks like this: sleep_rem 6- 2- 0- + + 10 sleep_total A + + 20 vore + carni herbi insecti omni This new graph is more useful than the first graph if you can't use color. Now, imagine that you want to re-create the second graph for youself by writing some R code. You want the different "-vores" to be depicted using the shape of points instead of the color of points. You have the R code for the first graph, but not the second graph. What do you think the R code would look like? For this question, your submission should just be the R code that you think would create the second graph. You can copy the code for the first graph and try to adapt whatever part seems like it would allow you to use different shapes on the graph. You don't need to use R (unless you want to). Simply look at the original code, and try to identify the part that needs to be changed, change it to what you suspect the code would look like. In the activity, you didn't see an example where shape was used instead of color to mark points, but you can make a good guess for how you'd do this -- it doesn't have to be perfect, but try to think through how it would work! Imagine you are a research assistant in a lab that studies the evolution of sleep and the brain by looking at different animal species. A postdoctoral researcher in the lab shares shared with you the following graph that they made: sleep_rem 6- 2- 0- 10 sleep_total 15 20 msleep %>% ggplot(aes(x = sleep_total, y = sleep_rem, color geom_point() + theme_bw() vore carni herbi insecti omni On this graph, the points each represent a different species of mammal (like barn owls, donkeys, or baboons). The graph is meant to help compare the total hours of any sleep that animals in a species typically get in a day with the number of hours of REM sleep that animals in a species typically get in a day. The color of the points represents what kinds of "-vore" a species is: is it a carni-vore, herbi-vore, omni-vore, or insecti-vore? The postdoctoral researcher even shares the R code they used to make this graph: vore)) + This graph is decently pretty and shows a lot of information, but the graph isn't as useful if you print it out in black and white. Because of this, the postdoctoral researcher also created a second graph, it looks like this: sleep_rem 6- 2- 0- + + 10 sleep_total A + + 20 vore + carni herbi insecti omni This new graph is more useful than the first graph if you can't use color. Now, imagine that you want to re-create the second graph for youself by writing some R code. You want the different "-vores" to be depicted using the shape of points instead of the color of points. You have the R code for the first graph, but not the second graph. What do you think the R code would look like? For this question, your submission should just be the R code that you think would create the second graph. You can copy the code for the first graph and try to adapt whatever part seems like it would allow you to use different shapes on the graph. You don't need to use R (unless you want to). Simply look at the original code, and try to identify the part that needs to be changed, change it to what you suspect the code would look like. In the activity, you didn't see an example where shape was used instead of color to mark points, but you can make a good guess for how you'd do this -- it doesn't have to be perfect, but try to think through how it would work!
Expert Answer:
Related Book For
Human Anatomy and Physiology
ISBN: 978-0321927040
10th edition
Authors: Elaine N. Marieb, Katja Hoehn
Posted Date:
Students also viewed these algorithms questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
1Describe in a simplified manner the flow of information from gene to protein
-
Pro Golf Manufacturing, Inc., manufactures and repairs golf equipment as well as giving golf lessons. On September 27, the Tribune Review Newspaper published an article stating that several historic...
-
What stimulates motivation? What three factors influence the behavior an individual will choose to satisfy a stimulus?
-
The Nielsen family formed their corporation, N. Robert Nielsen, Inc., to conduct farming operations. Morre, Grider & Co. is a certified public accounting firm that has provided accounting, tax, and...
-
Presented below are the financial statements of Helwany Company. Additional data:1. Depreciation expense was $17,500.2. Dividends declared and paid were $20,000.3. During the year equipment was sold...
-
A and has two danghters and one son. She has puast been diagnosed with a "ecucrence sf the lobalar breast cances treated with a humpectomy and adiation 4 years ago. Her father (Aaron) s still living...
-
a. What is a prerefunded bond? b. Identify two reasons why an issuing municipality would want to prerefund an outstanding bond.
-
From the viewpoint of the client of an infrastructure project, compare the relative advantages and disadvantages of turnkey projects, direct project management and BOT.
-
On 16 April 2015 Nokia announced that it would buy Alcatel-Lucent for $16.6 billion. This announcement marked the latest in a swirl of global mergers and acquisitions in the fast-evolving telecoms...
-
On 14 January 2002 it was announced that the US carrier JetBlue would buy ten Airbus 320 aircraft for $500 million. The planes were to be delivered over four years (two in 2002, two in 2003, three...
-
Assuming that you are a global company producing cosmetics, what are the variables you would take into consideration to build a ten-year scenario for China?
-
In mid-2005 Gunawan Wiboto (Gunawan), an ethnic Chinese Indonesian entrepreneur and founder of the Ramayana Group, decided to build a steel mill incorporated as a new company: PT Hanuman Steel. His...
-
Go to the Web Site of the Federal Reserve Board of Governors of the Federal Reserve System, http://www. federalreserve.gov, and identify current interest rates on U.S. Treasury bills and bonds that...
-
Write each fraction as a percent. 7 50
-
Florita Santos, a middle-aged woman, is admitted to the coronary care unit with a diagnosis of left ventricular failure resulting from a myocardial infarction. Her history indicated that she was...
-
Contrast the roles of ER-bound ribosomes with those free in the cytosol.
-
Name the three phases of interphase and describe an activity unique to each phase.
-
Salen Company finances some of its current operations by assigning accounts receivable to a finance company. On July 1, 2015, it assigned, under guarantee, specific accounts amounting to 150,000,000....
-
Bill Jovi is reviewing the cash accounting for Nottleman, Inc., a local mailing service. Jovis review will focus on the petty cash account and the bank reconciliation for the month ended May 31,...
-
On October 1, 2015, Arden Farm Equipment Company sold a pecan-harvesting machine to Valco Brothers Farm, Inc. In lieu of a cash payment Valco Brothers Farm gave Arden a 2-year, $120,000, 8% note (a...
Study smarter with the SolutionInn App