You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ggpairs seems to error out when applied to a data set that has missing data in an ordered factor variable. ggpairs works fine if there is missing data in an unordered factor variable. Tests were carried out with the latest package versions on cran as of Febuary 1st 2023.
library(GGally)
# example using the iris data setdf<-iris# ggairs works as expected
ggpairs(df)
# turn species column into an ordered factordf$Species<-factor(df$Species, levels= levels(df$Species), ordered=T)
# ggairs works still as expected
ggpairs(df)
# simulate missing datadf[1, 'Species'] <-NA# ggpairs errors out when there is missing data in an ordered factor variable
ggpairs(df)
df<-iris# simulate missing datadf[1, 'Species'] <-NA# ggpairs works correctly when there is missing data in an un-ordered factor variable
ggpairs(df)
ggpairs seems to error out when applied to a data set that has missing data in an ordered factor variable. ggpairs works fine if there is missing data in an unordered factor variable. Tests were carried out with the latest package versions on cran as of Febuary 1st 2023.
The error message I am getting is below
The text was updated successfully, but these errors were encountered: