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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started