diff --git a/index.html b/index.html index 82589cf..0d315da 100644 --- a/index.html +++ b/index.html @@ -111,11 +111,11 @@
# Show the cell indices
-draw_matrix(mat_3x5, show_cell_indices = TRUE)
-# Show the row and column indices
-draw_matrix(mat_3x5, show_row_indices = TRUE, show_column_indices = TRUE)
# Show all indices
+draw_matrix(mat_3x5, show_indices = "all")
# Highlight cells over a specific value
@@ -128,7 +128,9 @@ Example
# Highlight cells in specific columns
-gdraw_matrix(mat_3x5, highlight_area = highlight_columns(mat_3x5, columns = 2:4))
+gdraw_matrix(mat_3x5,
+ show_indices = c("row", "column"),
+ highlight_area = highlight_columns(mat_3x5, columns = 2:4))
draw_matrix(
data,
- show_cell_indices = FALSE,
- show_row_indices = FALSE,
- show_column_indices = FALSE,
- highlight_area = matrix(FALSE, nrow(data), ncol(data)),
- highlight_color = "lemonchiffon"
+ show_indices = "none",
+ highlight_area = matrix(FALSE, nrow = nrow(data), ncol = ncol(data)),
+ highlight_color = "lemonchiffon",
+ graph_title = paste0("Data Object: ", deparse(substitute(data))),
+ graph_subtitle = paste0("Dimensions: ", paste(n_row, "rows x", n_col, "columns"),
+ " | ", "Data Type: ", paste(class(data), collapse = ", "))
)
gdraw_matrix(
data,
- show_cell_indices = FALSE,
- show_row_indices = FALSE,
- show_column_indices = FALSE,
+ show_indices = "none",
highlight_area = matrix(FALSE, nrow(data), ncol(data)),
- highlight_color = "lemonchiffon"
+ highlight_color = "lemonchiffon",
+ graph_title = paste0("Data Object: ", deparse(substitute(data))),
+ graph_subtitle = paste0("Dimensions: ", paste(n_row, "rows x", n_col, "columns"),
+ " | ", "Data Type: ", paste(class(data), collapse = ", "))
)
"cell"
: matrix cell indices [i, j]
,
+"row"
: row indices [i, ]
to the left of the matrix,
+"column"
: column indices [,j]
above matrix, and
+"all"
: row, column, and inside options. Default: "none"
.