Animate a 1d tour path with a density plot or histogram.
display_dist(
method = "density",
center = TRUE,
half_range = NULL,
rug = FALSE,
...
)
animate_dist(data, tour_path = grand_tour(1), ...)
display method, histogram or density plot
should 1d projection be centered to have mean zero (default: TRUE). This pins the centre of distribution to the same place, and makes it easier to focus on the shape of the distribution.
half range to use when calculating limits of projected. If not set, defaults to maximum distance from origin to each row of data.
draw rug plot showing position of actual data points?
other arguments passed on to animate
matrix, or data frame containing numeric columns
tour path generator, defaults to 2d grand tour
animate
for options that apply to all animations
animate_dist(flea[, 1:6])
#> Converting input data to the required matrix format.
#> Using half_range 0.98
# When the distribution is not centred, it tends to wander around in a
# distracting manner
animate_dist(flea[, 1:6], center = FALSE)
#> Converting input data to the required matrix format.
#> Using half_range 1.9
# Alternatively, you can display the distribution with a histogram
animate_dist(flea[, 1:6], method = "hist")
#> Converting input data to the required matrix format.
#> Using half_range 0.98