Closed sfd99 closed 5 years ago
Thanks for filing an issue!
I think that this is a bug, I'll look into this soon and get back to you.
NJ -any news about the fix for this issue? Have not heard from you in a while...
Thanks for any update to this inverted T/F color problem! :-) (ie: airquality example shows colors as True values which are False and vv!)... pls, do see my 1st message above and try the airquality example with visdat...
[using latest versions of Rstudio, R, Ubuntu linux]
Hello, I think I know where the error may be. In the vis-expect.R scrip, inside the expect_guide_label function:
`else {
# calculate rounded percentages
p_expect_false <- round(p_expect, 1)
p_expect_true <- round(100 - p_expect,1)
# create the labels
p_expect_false_lab <- paste("FALSE \n(",
p_expect_false,
"%)",
sep = "")
p_expect_true_lab <- paste("TRUE \n(",
p_expect_true,
"%)",
sep = "")
}` I tried the code and I think it should be:
p_expect_false_lab <- paste("TRUE \n(",
p_expect_false,
"%)",
sep = "")
p_expect_true_lab <- paste("FALSE \n(",
p_expect_true,
"%)",
sep = "")
I don't know if this change will cause in any conflict in the code so I'm not making a pull request... Tell me if it works for you.
Thank you very much @samanthalazaro ! I really appreciate you finding this error! :)
The Problem:
In your example code:
Yet, the plot of:
What am I doing wrong? Love VISDAT! HELP!... SFd99 confused in San Francisco.