What I'm trying to do is to create a "biased" histogram using gglot from two different data frames
Unfortunately, geom_bar does not see that the previous data has been added, so it shows it at the top, I tried playing with the position and width, but it seems that this does not change anything because it has one bar for each category.
The code below creates data that incorrectly displays data (bars are on top of each other) and then calculates them correctly using a workaround to bind the data.
library("ggplot2") x<-data.frame(dat=rep(seq(1,4),3),let=rep("X")) y<-data.frame(dat=rep(seq(1,4),4),let=rep("y")) xy<-rbind(x,y)
I use ggplot to be persistent with other graphs that use only one block of data.
r ggplot2
gtwebb
source share