Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Use New Drug data ( Hint: Please copy and paste the data on worksheet New Drug and create a text file or CSV

1.Use New Drug data (Hint: Please copy and paste the data on worksheet New Drug and create a text file or CSV file. Then, import/read the data from the file into R.)a. Use R to create a histogram for Age.b. Use R to show the mean, median, mode, standard deviation, min, and max for Before_exp_BP and After_exp_BP, respectively.c. Use R to create a Box-Plot for Before_exp_BP and After_exp_BP, respectively.d. Use R to create a stem-and-leaf for Age. Which one do you like, histogram or stem-and-leaf? Please do the following 2 problems about data visualization. For each plot, you need to add a title for your work: Your LastName Figure X. The scripts sample: labs(title = "Your LastName Figure X") can be added for this purpose.2.Please use the built-in dataset SAT in the package MosaicData. Plot a scatterplot for the variables salary and sat. Your plot should be the same as the plot below. The main features: purple points, red line, and Y-axis with $. Use the title like Your LastName Figure 1 for your plot. 3.Please use the built-in dataset CPS85 in the package MosaicData. Plot a bar chart for the variable sector. Your plot should be the same as the plot below. The main features: purple bars, horizontal bars ranked from the highest % to the lowest %. Use the title like Your LastName Figure 2 for your 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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

Students also viewed these Databases questions