View source: R/shuttle_movie.R
shuttle_movie | R Documentation |
A movie to illustrate uncertainty in the linear logistic regression curves fitted to the real space shuttle data.
shuttle_movie(n_reps = 1, pos = 1, envir = as.environment(pos))
n_reps |
An integer scalar. Relevant to |
pos |
A numeric integer. Used in calls to |
envir |
An alternative way (to |
shuttle_movie
produces an
animated version of the plot produced by shuttle_sim_plot
.
Calling 'shuttle_movie' creates a plot containing the real data
and the logistic curve fitted to the real data and opens a
parameter window containing buttons labelled + and -.
Clicking + adds to the plot a new simulated dataset and the logistic curve
fitted to this dataset.
Clicking - removes the mostly recently added dataset.
Nothing is returned, only the animation is produced.
stat0002movies
: general information about the movies.
shuttle_sim
and shuttle_sim_plot
simulation
of fake space shuttle data (from a linear logistic regression model)
and plotting these data, respectively.
# Movie based on datasets of size 23
shuttle_movie()
# Movie based on datasets of size 230
shuttle_movie(n_reps = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.