Description Usage Arguments Details Value See Also Examples
View source: R/shuttle_movie.R
A movie to illustrate uncertainty in the linear logistic regression curves fitted to the real space shuttle data.
1 | 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.
movies
: general information about the movies.
shuttle_sim
and shuttle_sim
simulation
of fake space shuttle data (from a linear logistic regression model)
and plotting these data, respectively.
1 2 3 4 5 6 7 8 9 | # Load package rpanel
# [Use install.packages("rpanel") if necessary]
library(rpanel)
# 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.