Using vectors and objects

Description

Having Trouble Meeting Your Deadline?

Get your assignment on Using vectors and objects completed on time. avoid delay and – ORDER NOW


In this exercise, we will study two datasets that are shipped with the ggplot2 package: diamonds – describing the prices of more than 50,000 cut diamonds and msleep – describing the sleep times of 83 mammals. To install the package from CRAN, you can either select Tools > Install packages in the RStudio menu and then write ggplot2 in the text box in the pop-up window that appears, or use the following line of code: install.packages(“ggplot2”) 

Provide in the plain text R commands that finds/solves the problems below: 

1. View the documentation for the diamonds data and read about different variables. Check the data structures and answer: 

a. how many observations and variables are there and what type of variables (numeric, categorical, etc.) are there? 

b. Compute summary statistics (means, median, min, max, counts for categorical variables). 

c. Are there any missing values? 

2. Create a scatterplot with total sleeping time along the x-axis and time awake along the y-axis (using the msleep data).  

a. What pattern do you see? 

b. Explain the pattern(s). 

c. Explain the correlation between total sleeping time and time awake. 

Dates and times in R – https://www.stat.berkeley.edu/~s133/dates.html 

Explanation & Answer

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Order Now and we will direct you to our Order Page at Litessays. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Similar Posts