We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff9cae7 commit 1b3a9baCopy full SHA for 1b3a9ba
1 file changed
R/flatplot.R
@@ -66,7 +66,8 @@ flatplot <- function(df,
66
}
67
68
# if the cond column is not character, convert it
69
- if (!is.character(df[[cond]])) {
+ # but only if it is not already a factor
70
+ if (!is.factor(df[[cond]]) && !is.character(df[[cond]])) {
71
df[[cond]] <- as.character(df[[cond]])
72
73
0 commit comments