mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-21 05:19:07 +02:00
This commit is contained in:
parent
6c44be558d
commit
912fff7474
32 changed files with 2340 additions and 273 deletions
|
|
@ -84,6 +84,11 @@ add_sparkline <- function(grid, column = "vals", color.main = "#2a8484", color.s
|
|||
s <- summary(data)
|
||||
ds <- data.frame(x = names(s), y = s)
|
||||
horizontal <- FALSE
|
||||
} else if (identical(data_cl, "logical")) {
|
||||
type <- "column"
|
||||
s <- table(data)
|
||||
ds <- data.frame(x = names(s), y = as.vector(s))
|
||||
horizontal <- FALSE
|
||||
} else if (any(c("numeric", "integer") %in% data_cl)) {
|
||||
if (is_consecutive(data)) {
|
||||
type <- "line"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue