Prepare R scripts to create the Bar plot and pie chart

Assignment Help Basic Statistics
Reference no: EM132310458

Introduction to Data Analytics for Business Assignment - R Basics

Create R scripts to complete the following tasks.

Note: prepare your answers in a R script file (xxx.R) and submit the file.

[Q1 - Q6] Based on 'R Workshop.R' posted on the Blackboard course website and covered in class, prepare R scripts to complete the following tasks:

Q1. Install the "ggplot2" package and load it in the current R session. Also, get details regarding contents of "ggplot2" package.

Q2. Assign the value of the circumference and the size of a circle with radius being 10 to variable 'cc' and 'sc', respectively. Evaluate the value of 'cc' and 'sc' up to 5 digits at the command line.

Q3. Create objects that presents the following outputs on the console:

(1)

[1] "Mon" "Tue" "Wed" "Thur" "Fri"

(2)

[[1]]

[1] 1

[[2]]

[1] "hello"

[[3]]

[1] FALSE

(3)

 

ID

Name

Gender

Weight

1

1

Sam

M

75

2

2

Tom

M

65

3

3

Jane

F

70

4

4

Susan

F

60

Q4. Get the following outputs from the object created in 3. (3) above:

(1) All rows and the first 2 columns.

(2) Rows where Weight is greater than 65 and all columns.

(3) Rows where Weight is greater than 65, and 'Name' and 'Weight' columns.

Q5. Add a variable named 'Wcat' into the object created in 3. (3) above, so that the revised object will look like below (Wcat = "heavy" (Weight > 70), "normal" (60 < Weight <= 70), "light" (Weight <= 60):

 

ID

Name

Gender

Weight

Wcat

1

1

Sam

M

75

heavy

2

2

Tom

M

65

normal

3

3

Jane

F

70

normal

4

4

Susan

F

60

light

Q6. Now you are going to analyze a dataset named 'iris' available from the {datasets} package. Examine some key characteristics of the dataset, including its look, data structure, variables and summary statistics.

[Q7 - Q10] Based on 'QuickR_CreatingGraph.R' posted on the Blackboard course website and covered in class, prepare R scripts to create the following graphs:

7. Histogram and density plot

8. Dotplot

9. Bar plot and pie chart

10. Boxplot and scatter plot.

Attachment:- Assignment File.rar

Reference no: EM132310458

Questions Cloud

Explain the purpose of record management systems : TAE40116 - Certificate IV in Training and Assessment - Briefly explain the purpose of record management systems for training records in your organisation
Explain step-by-step guide on how to complete the activity : To practice lesson planning, create an age appropriate sensory activity for early childhood-aged students. Your lesson plan should include a goal.
Revised project proposal : Your Project Sponsor has reviewed your project proposal and has asked that you make some changes to it. Describe at least three (3) key milestones-deliverables
Compare the two code in terms of similarities and difference : BUACC3706 FINANCIAL ACCOUNTING-FEDERATION BUSINESS SCHOOL -Compare the two Codes in terms of similarities and differences.
Prepare R scripts to create the Bar plot and pie chart : Introduction to Data Analytics for Business Assignment - R Basics. Prepare R scripts to create the Bar plot and pie chart
Compare what you read there to grossmonts : We believe that the child's development is enhanced in partnership with the home, school and community. We respect parents as the most significant adults.
How each of the sources presents and deals with the subject : Summarize how each of the sources presents and deals with the subject. Explain how each source presents and deals with its findings or results.
Employ the concept of capacity management : Determine four layout patterns and when they should be used. Utilize the concept of supply chain management. Employ the concept of capacity management.
Discuss benefits of using case study methodology : Discuss 3 benefits of using case study methodology over other research methods to support problem solving in the workplace or ministry. 250-300 word minimum.

Reviews

Write a Review

Basic Statistics Questions & Answers

  Critique the external validity of given experiment

The experiment in Maine was so successful that company executives are now planning to increase sales nationwide by awarding free snowmobiles to sales leaders in all 50 states. Critique the external validity of this experiment.

  Examine the parts of the country on business

Next week you have to travel around parts of the country on business and have decided to hire a car from a car-hire company. You have contacted two companies.

  Biology and environmental science

Is there any evidence to suggest that the median chlorophyll amount in surface water is different in April than in August? Use a significance level of a = 0.05.

  For a 5-acre wheat field the average number of field mice

for a 5-acre wheat field the average number of field mice is 12. 1. find the probability that more than 2 field mice

  Significance level that the airline on-time performance

Can we conclude at the 5% significance level that the airline's on-time performance has improved?

  Q1-write introduction to spc statistical process

q1-write introduction to spc statistical process control?q2-describe the use of spc tools used at d2d?q3-how could

  Strength of prediction of the regression model

Plot the data, fit a trend line, and discuss the strength of prediction of the regression model.

  Compute the standard error of the estimate for the data

compute the standard error of the estimate for the data below. round to the thousandths place.x 21 22 23 24 25 26y

  Find the value of z-score- standard normal distribution

Find the value of Z-score- standard normal distribution.Find out a value of the standard normal random variable z, call it z0.

  Relation-correlation coefficient-coefficient determination

Calculate the correlation coefficient, coefficient of determination. Check whether there is a relation between correlation coefficient and coefficient of determination.

  The allowed fee for wedding services is 425 one ceremony

the allowed fee for wedding services is 425. one ceremony provider is suspected of charging more than the allowed

  Histogram for each numeric variable

Descriptive stats for each numeric variable, Histogram for each numeric variable and Bar chart for each attribute (non numeric) variable

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd