Question: Using R Langauge 7. Load the Beginning.RData file and perform the following tasks. Save the commands in a history file called question7.txt. a. Object invert

Using R Langauge

7. Load the Beginning.RData file and perform the following tasks. Save the commands in a history file called question7.txt. a. Object invert is a data frame. Using cross tabulation create a contingency table that shows the relationship between Taxa and Habitat. Save the resulting table as a new object. b. Use the data from the table to create the following stacked barplot. Hints: The actual plot is easier than you might think. Pay attention to the details. Full marks for making the legend appear and for putting it in a better spot as shown below (I used args.legend): Upper Lower Stem Ant Spider Beetle Bug Aphid Location of Insects Habitat Individuals Observed 0 100 200 300 400

R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

[Previously saved workspace restored]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!