Displaying 1 result from an estimated 1 matches for "proportion_2".
Did you mean:
proportion_1
2009 Jan 15
1
misalignment of x-axis when overlaying two plots using latticeExtra
...94,0.07194955,0.13164327,
18,4.865935,0.5446562,0.06894994,0.12645103,
19,5.204060,0.5650887,0.06726925,0.09242551,
20,5.208138,0.5765187,0.09282935,0.11053842)
df<-as.data.frame( t(matrix(vec,nrow=5,ncol=20)))
names(df)<-c("group","outcome","proportion_1","proportion_2","proportion_3")
library(latticeExtra)
library(lattice)
#First generate barchart to plot the 3 proportions
prop.data <-subset(df,select=c(proportion_1,proportion_2,proportion_3))
prop.tab <- as.table(as.matrix(prop.data))
barchart.obj<-barchart(prop.tab, stack=TRUE, horizo...