View source: R/autoplot-randomwalk.R
tidy_random_walk_autoplot | R Documentation |
This is an auto-plotting function that will take in a tidy_
distribution function and a few arguments with regard to the output of the
visualization.
If the number of simulations exceeds 9 then the legend will not print. The plot subtitle is put together by the attributes of the table passed to the function.
tidy_random_walk_autoplot(
.data,
.line_size = 0.5,
.geom_rug = FALSE,
.geom_smooth = FALSE,
.interactive = FALSE
)
.data |
The data passed in from a tidy_ |
.line_size |
The size param ggplot |
.geom_rug |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return the use of |
.geom_smooth |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return the use of |
.interactive |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return an interactive |
This function will produce a simple random walk plot from a tidy_
distribution function.
A ggplot or a plotly plot.
Steven P. Sanderson II, MPH
Other Autoplot:
bootstrap_stat_plot()
,
tidy_autoplot()
,
tidy_combined_autoplot()
,
tidy_four_autoplot()
,
tidy_multi_dist_autoplot()
tidy_normal(.sd = .1, .num_sims = 5) |>
tidy_random_walk(.value_type = "cum_sum") |>
tidy_random_walk_autoplot()
tidy_normal(.sd = .1, .num_sims = 20) |>
tidy_random_walk(.value_type = "cum_sum", .sample = TRUE, .replace = TRUE) |>
tidy_random_walk_autoplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.