Re: [R] How to plot a bunch of dichotomous code variables in one plot using ggplot2

2016-10-05 Thread Fox, John
t; g.maub...@weinwolf.de > Sent: October 5, 2016 8:47 AM > To: r-help@r-project.org > Subject: [R] How to plot a bunch of dichotomous code variables in one plot > using ggplot2 > > Hi All, > > I have a bunch of dichotomous code variables which shall be plotted in one > g

[R] How to plot a bunch of dichotomous code variables in one plot using ggplot2

2016-10-05 Thread G . Maubach
Hi All, I have a bunch of dichotomous code variables which shall be plotted in one graph using one of their values, this is "1" in this case. The dataset looks like this: -- cut -- var1 <- c(1,0,1,0,0,1,1,1,0,1) var2 <- c(0,1,1,1,1,0,0,0,0,0) var3 <- c(1,1,1,1,1,1,1,1,0,1) ds <- data.frame(var