Hello,
I'm not sure what I did wrong, but my graphs are not showing up correctly once I run the code. Please help me figure out what's the problem is.
This is my code and graphs
x = rnorm(1000,4,1);x
xbar = {}
for (i in 1:100)
{
x = sample(x,50);
xbar[i] = mean(x);
}
print(xbar)
par(mfrow = c(2,2))
plot(xbar)
hist(xbar)
qqnorm(xbar)
qqline(xbar)