Skip to content

Commit

Permalink
Merge pull request #28 from spsanderson/development
Browse files Browse the repository at this point in the history
update site
  • Loading branch information
spsanderson authored Jul 19, 2024
2 parents 217b7e7 + 50d2b4a commit 9c814fe
Show file tree
Hide file tree
Showing 53 changed files with 399 additions and 107 deletions.
14 changes: 14 additions & 0 deletions R/auto-rw30.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,23 @@
#' `num_steps`, `mu`, and `sd` are attached to the tibble.
#'
#' @examples
#' library(ggplot2)
#'
#' # Generate random walks and print the result
#' rw30()
#'
#' rw30() |>
#' ggplot(aes(x = x, y = y, color = walk_number, group = walk_number)) +
#' geom_line() +
#' theme_minimal() +
#' theme(legend.position = "none") +
#' labs(
#' title = "30 Random Walks",
#' x = "Step",
#' y = "Value",
#' color = "Walk Number"
#' )
#'
#' @name rw30
NULL
#' @rdname rw30
Expand Down
9 changes: 9 additions & 0 deletions R/gen-brown-motion.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,17 @@
#' of class matrix will be returned.
#'
#' @examples
#' library(ggplot2)
#'
#' brownian_motion()
#'
#' brownian_motion() |>
#' ggplot(aes(x = x, y = y, group = walk_number, color = walk_number)) +
#' geom_line() +
#' labs(title = "Brownian Motion", x = "Time", y = "Value") +
#' theme_minimal() +
#' theme(legend.position = "none")
#'
#' @return
#' A tibble/matrix
#'
Expand Down
9 changes: 9 additions & 0 deletions R/gen-geom-brown-motion.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,17 @@
#' of class matrix will be returned.
#'
#' @examples
#' library(ggplot2)
#'
#' geometric_brownian_motion()
#'
#' geometric_brownian_motion() |>
#' ggplot(aes(x = x, y = y, group = walk_number, color = walk_number)) +
#' geom_line() +
#' labs(title = "Geometric Brownian Motion", x = "Time", y = "Value") +
#' theme_minimal() +
#' theme(legend.position = "none")
#'
#' @return
#' A tibble/matrix
#'
Expand Down
2 changes: 1 addition & 1 deletion R/gen-random-drift-walk.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#'
#' walks <- random_normal_drift_walk(.num_walks = 10, .n = 50, .mu = 0, .sd = 1,
#' .drift = 0.05)
#' ggplot(walks, ggplot2::aes(x = x, y = y, group = walk_number, color = walk_number)) +
#' ggplot(walks, aes(x = x, y = y, group = walk_number, color = walk_number)) +
#' geom_line() +
#' labs(title = "Random Walks with Drift", x = "Time", y = "Value") +
#' theme_minimal() +
Expand Down
7 changes: 7 additions & 0 deletions R/gen-random-normal-walk.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
#' # Generate random walks with different mean and standard deviation
#' random_normal_walk(.num_walks = 10, .n = 50, .samp = FALSE)
#'
#' random_normal_walk(.num_walks = 2, .n = 100) |>
#' ggplot(aes(x = x, y = y, group = walk_number, color = walk_number)) +
#' geom_line() +
#' labs(title = "Random Normal Walk", x = "Time", y = "Value") +
#' theme_minimal() +
#' theme(legend.position = "none")
#'
#' @name random_normal_walk
NULL
#' @rdname random_normal_walk
Expand Down
10 changes: 8 additions & 2 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions docs/articles/getting-started.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c814fe

Please sign in to comment.