Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Discuss the order delivery stage of the order cycle.

Answered: 1 week ago

Question

Identify three ways to manage an intergenerational workforce.

Answered: 1 week ago

Question

Prepare a Porters Five Forces analysis.

Answered: 1 week ago

Question

Analyze the impact of mergers and acquisitions on employees.

Answered: 1 week ago