mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
handle ordered factors
This commit is contained in:
parent
a8ff1c8204
commit
342579c36f
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ add_sparkline <- function(grid, column = "vals", color.main = "#2a8484", color.s
|
|||
type <- "line"
|
||||
ds <- data.frame(x = NA, y = NA)
|
||||
horizontal <- FALSE
|
||||
} else if (identical(data_cl, "factor")) {
|
||||
} else if ("factor" %in% data_cl) {
|
||||
type <- "column"
|
||||
s <- summary(data)
|
||||
ds <- data.frame(x = names(s), y = s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue