x <- rnorm(8)
# Add one value to the right
add_data(x, "box", range = 1.5)
# Add one value to the right using data range
add_data(x, "range", range = 0.1)
# Add one value to the right, larger possible range
add_data(x, "box", range = c(1.5, 3))
# Add two values to the right
add_data(x, "range", n = 2, range = 0.1)
# Add two values to the left and three to the right
add_data(x, "range", n = c(2, 3), range = 0.1)
Run the code above in your browser using DataLab