Question

You can use any data set Using the variables of interest, create a chart in R...

You can use any data set
Using the variables of interest, create a chart in R (use ggplot library). This chart should be able to present to the reader what the relationship between the two variables are. If should answer, or hint towards an answer, to your question.

Homework Answers

Answer #2

Sol:

In ggplot2 libraru use ggplot function in aesthetics take x=wt and y=mpg for the inbuikt dataset in R which is mtcars

store in an object scp

with geom_point create a scatterplot,which gives relationship between two variables


library(ggplot2)
scp <- ggplot(mtcars, aes(wt, mpg))
scp + geom_point(colour = "green",size = 3)

Intrepretationof scatterplot

There exists a strong negative realtionship between wt and mpg

As wt increase,mpg decreases

and as wt decreases,mpg increases

Form;linear

strength:strong

direction:negative

answered by: anonymous
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Data Set A- 7,7,7,9,9,9,10 Data Set B- 4,6,6,6,8,9,9,9,10,10,10 Step 1 Create a bar graph that examines...
Data Set A- 7,7,7,9,9,9,10 Data Set B- 4,6,6,6,8,9,9,9,10,10,10 Step 1 Create a bar graph that examines a variable or variables in your data set. Step 2 Find the sample mean, median (if it exists) mode for each set of data Next find the sample standard deviations for each set of data Create a box and whisker plot for each variable for each set data Eliminate any outliers from the samples. Redo part 1 for each variable (if necessary, if not...
Using R or RStudio After loading the data crime2005 data set from the library smss, use...
Using R or RStudio After loading the data crime2005 data set from the library smss, use (non-robust) linear regression to model the crime rate per 10,000 people (VI2) as a function of the percentage of the population that live in metropolitan areas (ME) and the percentage of the population that live below the poverty line (PO). Enter your R code below.
Identify a health care organization that is of interest to you. Create a chart that illustrates...
Identify a health care organization that is of interest to you. Create a chart that illustrates its organizational structure. An example of an organization chart can be found in Chapter 16 of your textbook, Organization Behavior in Health Care. Use the organizational chart you have created to discuss the following in a paper of 750-1,000 words: Describe the relationship of the leaders, departments, and personnel within the organizational chart. Explain what communication principles are needed to support workforce management and...
using r (include all code and packages used) Generate 25 variables, each of which consists of...
using r (include all code and packages used) Generate 25 variables, each of which consists of 25 random samples from a standard normal. Store these variables in a data frame – call it df.train – and randomly select one variable to be the response – rename it y. (The end result should be a data frame with 25 observations on 25 variables but with no relationships between any of the variables.) Repeat step (a) to create a test set called...
Construct a scattergram for each data set. Then calculate r and r2 for each data set....
Construct a scattergram for each data set. Then calculate r and r2 for each data set. Interpret their values. Complete parts a through d. a. x −1 0 1 2 3 y −3 0 1 4 5 Calculate r. r=. 9853.(Round to four decimal places as​ needed.) Calculate r2. r2=0.9709 ​(Round to four decimal places as​ needed.) Interpret r. Choose the correct answer below. A. There is not enough information to answer this question. B.There is a very strong negative...
Construct a scattergram for each data set. Then calculate r and r2for each data set. Interpret...
Construct a scattergram for each data set. Then calculate r and r2for each data set. Interpret their values. Complete parts a through d. a. x−1,0,1,2,3 y−3,0,1,4,5 Calculate r. r=.9853 ​(Round to four decimal places as​ needed.)Calculate r2.=0.9709 ​(Round to four decimal places as​ needed.) Interpret r. Choose the correct answer below. A. There is not enough information to answer this question. B. There is a very strong negative linear relationship between x and y. C.x and y are not related....
Use the data values in the table below to calculate the correlation, r, between the variables...
Use the data values in the table below to calculate the correlation, r, between the variables x and y. Hint: Use technology to do this...you do not need to compute this by hand. x y 1 17.98 2 21.56 3 25.84 4 27.72 5 27.4 6 29.18 7 33.56 8 32.44 9 35.82 Give your answer to rounded three decimal places.
What type of chart would you use if you had data collected over time? a. X-bar/R...
What type of chart would you use if you had data collected over time? a. X-bar/R chart b. p chart c. Too vague to answer d. c chart
Construct a scattergram for each data set. Then calculate r and r2 for each data set....
Construct a scattergram for each data set. Then calculate r and r2 for each data set. Interpret their values. Complete parts a through d. a. x −1 0 1 2 3 y −3 0 1 4 5 Calculate r. r=. 9853. ​(Round to four decimal places as​ needed.)Calculate r2=0.9709​(Round to four decimal places as​ needed.) Interpret r. Choose the correct answer below. A.There is not enough information to answer this question. B.There is a very strong negative linear relationship between...
4. You have calculated a correlation coefficient r = -0.98 for a set of data. What...
4. You have calculated a correlation coefficient r = -0.98 for a set of data. What does this tell you about the relationship between the variables? which of the given option is correct a) Strong, direct correlation b) Weak, direct correlation c) Strong, inverse correlation d) Weak, inverse correlation
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT