-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: when a variable only has one value nothing is drawn #6
Comments
There is also a "removed data" case in the README for "wide" data set which might be related |
I believe this is caused by transform_pcp(), where (max()-min()) is used as denominator |
We should also coerce the character variables to factor variables in the gather_pcp(), otherwise, it won't work with charactor variables. |
And also take care of the classes of variables, for example, when it is an "integer", after transformation, it should be "numeric", but it is still recorded as "integer" which is carried over from gather_pcp. This could also happen in coercing character vectors. When the class is "charactor", the Statpcp will produce an error. |
But "integer" is fine |
data(flea, package="GGally")
flea$one <- 1
flea %>%
ggplot(aes(vars = vars(1:8))) +
geom_pcp(aes(colour=species))
The text was updated successfully, but these errors were encountered: