mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37: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"
|
type <- "line"
|
||||||
ds <- data.frame(x = NA, y = NA)
|
ds <- data.frame(x = NA, y = NA)
|
||||||
horizontal <- FALSE
|
horizontal <- FALSE
|
||||||
} else if (identical(data_cl, "factor")) {
|
} else if ("factor" %in% data_cl) {
|
||||||
type <- "column"
|
type <- "column"
|
||||||
s <- summary(data)
|
s <- summary(data)
|
||||||
ds <- data.frame(x = names(s), y = s)
|
ds <- data.frame(x = names(s), y = s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue