diff --git a/pkgdown.yml b/pkgdown.yml index c6c608d..0f1b944 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 2.19.2 pkgdown: 2.0.7 pkgdown_sha: ~ articles: {} -last_built: 2024-01-17T06:40Z +last_built: 2024-01-17T08:14Z urls: reference: http://r-pkg.thecoatlessprofessor.com/drawr/reference article: http://r-pkg.thecoatlessprofessor.com/drawr/articles diff --git a/reference/Rplot002.png b/reference/Rplot002.png index 26368e7..0197da0 100644 Binary files a/reference/Rplot002.png and b/reference/Rplot002.png differ diff --git a/reference/Rplot003.png b/reference/Rplot003.png index 0b59e3c..7ac39e3 100644 Binary files a/reference/Rplot003.png and b/reference/Rplot003.png differ diff --git a/reference/Rplot004.png b/reference/Rplot004.png index 713e047..af4b245 100644 Binary files a/reference/Rplot004.png and b/reference/Rplot004.png differ diff --git a/reference/Rplot008.png b/reference/Rplot008.png index c131dac..532d3b5 100644 Binary files a/reference/Rplot008.png and b/reference/Rplot008.png differ diff --git a/reference/draw-matrix-4.png b/reference/draw-matrix-4.png index 2e976ac..1c16fed 100644 Binary files a/reference/draw-matrix-4.png and b/reference/draw-matrix-4.png differ diff --git a/reference/draw-matrix-8.png b/reference/draw-matrix-8.png index 86577eb..61bb6cd 100644 Binary files a/reference/draw-matrix-8.png and b/reference/draw-matrix-8.png differ diff --git a/reference/draw-vector-1.png b/reference/draw-vector-1.png index 37cfdfb..9c5af31 100644 Binary files a/reference/draw-vector-1.png and b/reference/draw-vector-1.png differ diff --git a/reference/draw-vector-2.png b/reference/draw-vector-2.png index 654ad77..4b9d275 100644 Binary files a/reference/draw-vector-2.png and b/reference/draw-vector-2.png differ diff --git a/reference/draw-vector-3.png b/reference/draw-vector-3.png index afa55ab..4606bb3 100644 Binary files a/reference/draw-vector-3.png and b/reference/draw-vector-3.png differ diff --git a/reference/draw-vector-4.png b/reference/draw-vector-4.png new file mode 100644 index 0000000..d5cb773 Binary files /dev/null and b/reference/draw-vector-4.png differ diff --git a/reference/draw-vector.html b/reference/draw-vector.html index bac7132..7576328 100644 --- a/reference/draw-vector.html +++ b/reference/draw-vector.html @@ -105,12 +105,22 @@

Examples # Visualize a 6 element vector with indices underneath data vec_6 <- c(-3, 5, NA, Inf, 2, 1) -draw_vector(vec_6, show_indices = "inside") +draw_vector(vec_6, layout = "horizontal", show_indices = "inside") # Highlight the 2nd, 4th, and 6th cell with indices shown outside -draw_vector(vec_6, show_indices = "outside", highlight_area = c(2, 4, 6)) +draw_vector( + vec_6, show_indices = "outside", + highlight_area = highlight_locations(vec_6, c(2, 4, 6)) +) + +# Highlight the 4th-6th cells with indices shown inside +draw_vector( + vec_6, show_indices = "inside", + highlight_area = highlight_locations(vec_6, 4:6) +) +