In R, please provide the code for the following: Install the ggpubr package. Load the islands data set; note that the units are in 10,000s of square miles (so a value of 14 indicates 14,000 square miles) Generate a qq plot, with a reference line, of the landmass in square miles of the islands (landmasses) in the data set. What can you conclude about the distribution of the sizes and which tests will and will not be appropriate for this data set? Use the sample function to create 5 different samples of size 15 from the islands data set. You will use these samples for the remainder of the lab. Plot boxplots of all 5 data sets on the same graph, with each boxplot being a different color. Clearly label your sets 1-5, and use this same ordering to present your results in the rest of this problem. Make a dataframe with one column that has the sample number (1-5) and another column with the data. Make sure you have named your columns. An example where sample1 is the first sample of 15 points etc is given here: sampleIndices <- c(rep(1,15), rep(2,15), rep(3,15), rep(4,15), rep(5,15)) allSampleData <- c(sample1, sample2, sample3, sample4, sample5) my_data <- data.frame(sampleIndices, allSampleData) colnames(my_data) <- c("sample number", "sq ft") Use the ggboxplot function from the ggpubr library to create your plot

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In R, please provide the code for the following:

Install the ggpubr package.

Load the islands data set; note that the units are in 10,000s of square miles (so a value of 14 indicates 14,000 square miles)

Generate a qq plot, with a reference line, of the landmass in square miles of the islands (landmasses) in the data set. What can you conclude about the distribution of the sizes and which tests will and will not be appropriate for this data set?

Use the sample function to create 5 different samples of size 15 from the islands data set. You will use these samples for the remainder of the lab.

Plot boxplots of all 5 data sets on the same graph, with each boxplot being a different color. Clearly label your sets 1-5, and use this same ordering to present your results in the rest of this problem.

Make a dataframe with one column that has the sample number (1-5) and another column with the data. Make sure you have named your columns. An example where sample1 is the first sample of 15 points etc is given here: sampleIndices <- c(rep(1,15), rep(2,15), rep(3,15), rep(4,15), rep(5,15)) allSampleData <- c(sample1, sample2, sample3, sample4, sample5)

my_data <- data.frame(sampleIndices, allSampleData)

colnames(my_data) <- c("sample number", "sq ft")

Use the ggboxplot function from the ggpubr library to create your plot

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Elements and Tags
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education