Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume object a contains the data you need to plot the following graph. To generate the following graph, in which the error bars stand for

Assume object "a" contains the data you need to plot the following graph. To generate the following graph, in which the error bars stand for the standard deviation (SD) and the background is white, what can be a line of the codes you write by using the R package "ggplot2"?

ggplot2(a,aes(x=Months_of_Age,y=Mean,fill=Mouse))+geom_bar(position=position_dodge(),stat=="identity",col="black")+geom_errorbar(aes(ymin=Mean-SD,ymax=Mean+SD),width=.2, position=position_dodge(.9)+theme_bw())

ggplot2(a,aes(x=Age_Months))+geom_bar(position=position_dodge(),stat="identity",colour="black")+geom_errorbar(aes(ymin= SEM,ymax= SEM),width=.2, position=position_dodge(.9))+theme_bw()

ggplot(a,aes(x=Age_Months,y=Mean,fill=Mouse))+geom_bar(position=position_dodge(),stat="identity",colour="black")+geom_errorbar(aes(ymin=Mean-SEM,ymax=Mean+SEM),width=.2, position=position_dodge(.9))+theme_bw()

ggplot(a,aes(x=Age_Months,y=Mean,fill=Mouse))+geom_bar(position=position_dodge(),stat="identity",col="black")+geom_errorbar(aes(ymin=Mean-SD,ymax=Mean+SD),width=.2, position=position_dodge(.9))+theme_bw()

ggplot(a,aes(x=Age_Months,y=Mean,fill=Mouse))+geom_bar(position=position_dodge(),stat="identity",colour="black")+geom_errorbar(aes(ymin= SD,ymax= SD),width=.2, position=position_dodge(.9))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Analytics Data Analysis and Decision Making

Authors: S. Christian Albright, Wayne L. Winston

5th edition

1133629601, 9781285965529 , 978-1133629603

More Books

Students also viewed these Mathematics questions

Question

4. Greet students at the door to the class every day.

Answered: 1 week ago