24 octubre, 2024
Random numbers:
x <- rnorm(100) y <- rnorm(100) plot.new() plot.window(xlim = c(-1, 1), ylim = c(-1, 1), asp = 1) lines(x, y, col = hsv(0.65, 1, 1)) lines(0.8 * x, 0.8 * y, col = hsv(0.8, 1, 1)) lines(0.6 * x, 0.6 * y, col = hsv(0.9, 1, 1)) lines(0.4 * x, 0.4 * y, col = hsv(0.95, 1, 1))
Random numbers:
Random numbers, transformed:
random_numers <- rnorm(100) x <- sin(random_numers) y <- cos(random_numers) plot.new() plot.window(xlim = c(-1, 1), ylim = c(-1, 1), asp = 1) lines(x, y, col = hsv(0.65, 1, 1)) lines(0.8 * x, 0.8 * y, col = hsv(0.8, 1, 1)) lines(0.6 * x, 0.6 * y, col = hsv(0.9, 1, 1)) lines(0.4 * x, 0.4 * y, col = hsv(0.95, 1, 1))
Random numbers, transformed:
Numbers from 1 to 100, being transformed:
ordered_numers <- seq(1, 100,1) x <- sin(ordered_numers) y <- cos(ordered_numers) plot.new() plot.window(xlim = c(-1, 1), ylim = c(-1, 1), asp = 1) lines(x, y, col = hsv(0.65, 1, 1)) lines(0.8 * x, 0.8 * y, col = hsv(0.8, 1, 1)) lines(0.6 * x, 0.6 * y, col = hsv(0.9, 1, 1)) lines(0.4 * x, 0.4 * y, col = hsv(0.95, 1, 1)) legend("bottomright", legend = "© Gaston Sanchez", bty = "n", text.col = "gray70")
Numbers from 1 to 100, being transformed:
Vacancy chain - a social structure through which resources are distributed to consumers.
Hermit crabs employ vacancy chains as a method of shell exchange.