Question
Now, imagine that you want to re-create the second graph for yourself by writing some R code. You want the different -vores to be depicted
Now, imagine that you want to re-create the second graph for yourself 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, the submission should just be the R code that one would create for the second graph.You can copy the code for the first graph and try to adapt whatever part seems like it would allow using of different shapes on the graph.You don't need to use R . Simply look at the original code, and try to identify the part that needs to be changed, changing it to what is suspectedthe code would look like.
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: VD re - carni I herbi sleep_rem - n - Insecti . , I omni slllgepitotal 1'5 2'0 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: msleep %>% ggplotCaes(x = sleep_total, y = sleep_rem, color = vore)) + geom_point() + theme_bw() 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: 4- vore carni sleep_rem A herb insecti omni 2 10 15 sleep_total 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 shapeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started