Skip to content

Commit

Permalink
Merge pull request #103 from spsanderson/development
Browse files Browse the repository at this point in the history
update site with alt txt
  • Loading branch information
spsanderson authored Sep 25, 2024
2 parents 160b392 + a13fcbf commit fb7ad77
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 23 deletions.
2 changes: 2 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ rw30() |>
Here is a basic visualization of a Random Walk:

```{r random_walk_visual_example}
#| fig.alt: >
#| Visualize a Random Walk of 30 simulations
rw30() |>
visualize_walks()
```
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ rw30() |>
#> walk_number x y
#> <fct> <int> <dbl>
#> 1 1 1 0
#> 2 1 2 -1.82
#> 3 1 3 -2.48
#> 4 1 4 -2.29
#> 5 1 5 -1.34
#> 6 1 6 -0.373
#> 7 1 7 0.287
#> 8 1 8 0.495
#> 9 1 9 0.493
#> 10 1 10 1.23
#> 2 1 2 -0.895
#> 3 1 3 -1.21
#> 4 1 4 -0.805
#> 5 1 5 -1.42
#> 6 1 6 -2.50
#> 7 1 7 -2.58
#> 8 1 8 -3.19
#> 9 1 9 -3.46
#> 10 1 10 -3.90
```

Here is a basic visualization of a Random Walk:
Expand All @@ -66,4 +66,4 @@ rw30() |>
visualize_walks()
```

<img src="man/figures/README-random_walk_visual_example-1.png" width="100%" />
<img src="man/figures/README-random_walk_visual_example-1.png" alt="Visualize a Random Walk of 30 simulations" width="100%" />
2 changes: 1 addition & 1 deletion docs/articles/getting-started.html

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

20 changes: 10 additions & 10 deletions docs/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgdown: 2.1.0
pkgdown_sha: ~
articles:
getting-started: getting-started.html
last_built: 2024-09-25T01:08Z
last_built: 2024-09-25T01:12Z
urls:
reference: https://www.spsanderson.com/RandomWalker/reference
article: https://www.spsanderson.com/RandomWalker/articles
Binary file modified docs/reference/figures/README-random_walk_visual_example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

Binary file modified man/figures/README-random_walk_visual_example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions vignettes/getting-started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ atb[!names(atb) %in% c("row.names")]
To visualize the random walk generated by the `rw30()` function, we can use the `visualize_walks()` function. This function creates a line plot showing the path of the random walk over time.

```{r random_walk_visual_example, fig.width=7, fig.height=4}
#| fig.alt: >
#| Visualize a Random Walk of 30 simulations
visualize_walks(rw30())
```

Expand Down

0 comments on commit fb7ad77

Please sign in to comment.