Hi Dan,
With a bit of arm-twisting, you can get pretty close with pyramid.plot
(plotrix).
lx<-c(0,0,0,0,0,0,0,0,0,0,0,0,0,20,30,55,60,60,70,80,100,90)
rx<-c(90,95,95,80,70,65,75,54,52,50,40,20,0,0,0,0,0,0,0,0,0,0)
library(plotrix)
x11(width=10)
pyramid.plot(lx,rx,labels=rep("",22),gap=0,top.labels
Easy to write - here's a quick piece of code (without bells and whistles
though...)
dat1 <- rnorm(1000)
dat2 <- rgamma(3000, shape=3)
biHist <- function(d1, d2) {
col1 <- "#FFCCBB"
col2 <- "#BBCCFF"
hAll <- hist(c(d1, d2))
hD1 <- hist(d1, breaks=hAll$breaks)
On Jun 2, 2015, at 11:13 AM, Dan Abner wrote:
> Hi all,
>
> Does anyone know how to create a graph of propensity scores like the
> one on the left in the attachment? I can easily generate the one on
> the right: How does one force the respective histograms to share the
> same rotated x-axis? Is
3 matches
Mail list logo