Skip to content

Commit 1b3a9ba

Browse files
committed
Fix: flatplot fix factors for 0.0.6
1 parent ff9cae7 commit 1b3a9ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

R/flatplot.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ flatplot <- function(df,
6666
}
6767

6868
# if the cond column is not character, convert it
69-
if (!is.character(df[[cond]])) {
69+
# but only if it is not already a factor
70+
if (!is.factor(df[[cond]]) && !is.character(df[[cond]])) {
7071
df[[cond]] <- as.character(df[[cond]])
7172
}
7273

0 commit comments

Comments
 (0)