par(mfrow = c(1,2), mar = c(4,4,3,1))
plot(x_mc, y_mc, pch = 16, col = "steelblue",
xlab = "X", ylab = "Y", main = "Naive Monte Carlo",
xlim = c(0,1), ylim = c(0,1))
abline(v = seq(0, 1, length.out = 11), col = "grey70", lty = 2)
abline(h = seq(0, 1, length.out = 11), col = "grey70", lty = 2)
plot(x_lhs, y_lhs, pch = 16, col = "purple",
xlab = "X", ylab = "Y", main = "Latin Hypercube Sampling",
xlim = c(0,1), ylim = c(0,1))
abline(v = seq(0, 1, length.out = 11), col = "grey70", lty = 2)
abline(h = seq(0, 1, length.out = 11), col = "grey70", lty = 2)