Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure 2 Panel (a) 1e+07 - total volume sold 1e+06 - 1e+05 - 2015 2016 2017 2018 Date Panel (b) 1e+07 - total volume sold

image text in transcribedimage text in transcribed
Figure 2 Panel (a) 1e+07 - total volume sold 1e+06 - 1e+05 - 2015 2016 2017 2018 Date Panel (b) 1e+07 - total volume sold 1e+06 - 1e+05 - 2015 2016 2017 2018 Datec. [20 marks] Figure 2 shows two different panels comparing how the total volume sold of conventional avocados change over time (note that both plots are plotted on a log scale). i. [5 marks] Which of the two panels, (a) or (b), best shows the pattern of total volume sold? Explain your answer. ii. [5 marks] Would a 2D histogram make sense to use for summarizing this particular relationship? Briefly explain why or why not. iii. [5 marks] Below is the line of code that generated the plot in panel (b). Change the line of code below so that it produces a pair plots that contains total_volume_sold for both conventional and organic separately over time (i.e. in different plotting areas of the same plot). s ggplot(data_avocado %>% filter(type=="conventional"), aes(x=Date,y=total_volume_sold,group=Date)) + geom;boxplot() + ggtitle("Panel (b)")+ scale_y_log10() iv. [5 marks] Why can't you use the original data_avocado data object to plot the total volume sold by the size of the avocados using the same figure you gave code to generate in part (iii) above? Explain why and then write a line of code which would allow you to generate the necessary data object which could then be used to make such a plot (you don't need to include the code for the plot)

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

Step: 3

blur-text-image

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

Applied Calculus

Authors: Stefan Waner, Steven Costenoble

7th Edition

1337514306, 9781337514309

More Books

Students also viewed these Mathematics questions