So my friend is in a stats class, and his professor keeps giving him faulty code.
He's supposed to type in:
plot(brainwt ~ headsize,
data = brainhead[brainhead$gender == "male",],
pch = 1,
col = "blue",
main = "Brain Weight versus Head Size by sex”,
xlab = "head size (cm^3)",
ylab = "brain weight (grams)"
xlim = c(2700,5000)
ylim = c(950,1700)
But he gets this error:
Error: unexpected symbol in:
" main = "Brain Weight versus Head Size by sex”,
xlab = "head"
We've tried messing around with placements of commas, quotations, so on, nothing fixes it. Any help?