search for: yoda1

Displaying 1 result from an estimated 1 matches for "yoda1".

Did you mean: yoda
2009 Jan 20
2
Stacked barplot with two stacked bars besides each other
Hi, I have a particular barplot I would like to generate, but I am having trouble getting it to work. What I would like is in effect two barplots with stacked bars merged into one. For example, I have two samples (yoda1,yoda2) on which I measure whether two variables (var1,var2) are present or absent for a number of measurements on that sample. > var1 <- data.frame(yoda1=c(3,7), yoda2=c(1,9)) > var2 <- data.frame(yoda1=c(8,2), yoda2=c(5,5)) For each variable I can plot a barplot > barplot(as.matr...