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

  Statistics-probability assignment

MATH1550H: Assignment:  Question:  A word is selected at random from the following poem of Persian poet and mathematician Omar Khayyam (1048-1131), translated by English poet Edward Fitzgerald (1808-1883). Find the expected value of the length of th..

  What is the least number

MATH1550H: Assignment:  Question:     what is the least number of applicants that should be interviewed so as to have at least 50% chance of finding one such secretary?

  Determine the value of k

MATH1550H: Assignment:  Question:     Experience shows that X, the number of customers entering a post office during any period of time t, is a random variable the probability mass function of which is of the form

  What is the probability

MATH1550H: Assignment:Questions: (Genetics) What is the probability that at most two of the offspring are aa?

  Binomial distributions

MATH1550H: Assignment:  Questions:  Let’s assume the department of Mathematics of Trent University has 11 faculty members. For i = 0; 1; 2; 3; find pi, the probability that i of them were born on Canada Day using the binomial distributions.

  Caselet on mcdonald’s vs. burger king - waiting time

Caselet on McDonald’s vs. Burger King - Waiting time

  Generate descriptive statistics

Generate descriptive statistics. Create a stem-and-leaf plot of the data and box plot of the data.

  Sampling variability and standard error

Problems on Sampling Variability and Standard Error and Confidence Intervals

  Estimate the population mean

Estimate the population mean

  Conduct a marketing experiment

Conduct a marketing experiment in which students are to taste one of two different brands of soft drink

  Find out the probability

Find out the probability

  Linear programming models

LINEAR PROGRAMMING MODELS

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