Skip to content

Commit

Permalink
Add more documentation for vector
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 15, 2024
1 parent ed713b3 commit 178c122
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion R/vector.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@
#' @examples
#' # Base graphics
#'
#' # Visualize a 3x3
#' # Visualize a nine element vector
#' vec_9 <- round(rnorm(5, 0, 4), 2)
#' draw_vector(vec_9)
#'
#' # 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")
#'
#' # 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 <- function(
data,
layout = c("vertical", "horizontal"),
Expand Down
9 changes: 8 additions & 1 deletion man/draw-vector.Rd

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

0 comments on commit 178c122

Please sign in to comment.