**Using RStudio**Please show code**
(InsectSprays) Which spray(s) is/are the most effective against insects? Defend your answer with a plot.
Solution:
To know which spray is more effective , we need their insect count and type of spray.
Box plot is used to find the most effective spary.
let there be 6 types of spray - A,B,C,D,E,F
the r-command to analyse the sample data is as follows
boxplot(count~spray, InsectSprays,xlab="spray",ylab="count")
count is insect count and spray is type of spray the output of the above comment is as follows
from the above plot spray C is found to be more effective.
Get Answers For Free
Most questions answered within 1 hours.