Question: I need help with question 3, above Q3 is how to correctly write the code. # Use the folloing lines of code to produce 2

I need help with question 3, above Q3 is how to correctly write the code.

# Use the folloing lines of code to produce 2 histograms on the same graphics window.

par(mfrow=c(1,2)) # one row with 2 graphics on a single graphics window

# the above line will open a blank graphics window - leave open while running the next 2 lines.

hist(train$GrLivArea, breaks=20, main = "Square Feet",

cex.main = 2, xlab = "")

hist(log(train$GrLivArea), main = "Log Square Feet",

cex.main = 2, xlab = "")

# Q3 and Q6

# Write code similar to the 3 lines above to create 2 scatterplots on one graphics window.

# The left scatterplot should have sales price on the vertical axis and square footage on the horizontal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!