I have two variables, ABO compatibility = yes or no (coded 1 and 2), Rh compatibility = yes or no (coded 1 and 2). I need to create variables of the four possible combinations ABO yes + Rh yes, ABO yes + Rh no, ABO no + Rh yes, ABO no + Rh no, so that I can do a bar plot showing these four categories by another variable. Using dplyr mutate I can only get logicals, TRUE FALSE, which I can’t plot. I’ve searched but I don’t see any other way to make these new variables.
I have two variables, ABO compatibility = yes or no (coded 1 and 2), Rh compatibility = yes or no (coded 1 and 2). I need to create variables of the four possible combinations ABO yes + Rh yes, ABO yes + Rh no, ABO no + Rh yes, ABO no + Rh no, so that I can do a bar plot showing these four categories by another variable. Using dplyr mutate I can only get logicals, TRUE FALSE, which I can’t plot. I’ve searched but I don’t see any other way to make these new variables.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ggplot2/ad276bb5-870c-4f7f-8576-48aae3635836n%40googlegroups.com.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ggplot2/69c79176-932a-d971-5e33-2f7866a8d114%40warwick.ac.uk.
On Sep 1, 2020, at 12:37 PM, jcred...@gmail.com wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/ggplot2/CAP5tOSO2FNMmNwPXKCnoQZTR66L2UVzDZnpaXsuLO9YUva02QQ%40mail.gmail.com.