I need help figuring out the R codes for these problems! Please include the resu
ID: 3328829 • Letter: I
Question
I need help figuring out the R codes for these problems!
Explanation / Answer
1) relative frequency
Monkeys female= 5/15 * 100%=33%
Giraffes female=7/11 * 100%=63.63%
Hyenas female=5/11 *100%=45.45%
2)
R code
Data= read.table(file.choose(),header=T) #cut and paste the data table in a notepad or create the data table in notepad,choose the file
barplot(as.matrix(Data)) # it will give the plot
3) for juxtaposed barplot do the bar plot as before with option beside=T
i.e, barplot(as.matrix(Data),beside=TRUE)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.