I want to draw a stacked bar plot using ggplot with blue outline. However, my code will draw all blocks with blue outline. I would want only the entire column with blue outline not lines inside the column. Here's my code. In this example, I want to remove blue line between my red block and green block.
library(ggplot2)
test=as.data.frame(cbind(a=c(1,1,2,3), b=1:4, c=as.character(1:4)))
ggplot(test) + geom_bar(aes(x=a, y=b, fill=c), colour="blue", stat="identity")
One option would be to draw a second transparent barchart with a blue outline on top the first where I use
stat="summary"
withfun=sum
to compute the totals for eacha
: