I have a variable that is a function of tapply
meanx <- with(dat2, tapply(x, list(type,status), mean))
The out put reads as follows :
Status 1 Status2
Type 1 11.99 9.8
Type 2 88.8 100
I also have confidence intervals for the 4 means
xCI <- c(meanx - qnorm(0.975, mean=0, sd=1)*serrorx,
meanx + qnorm(0.975, mean=0, sd=1)*serrorx)
I want to plot a simple gglpot2 barplot, with the confidence intervals. Since the meanx is a tapply function, I get stuck every time I try to use it. Its very tedious to save it as a new variable with a string of values and use it either in the normal barplot or ggplot2. Any help will be appreciated. (I am a newbie at gglopt2)
Thanks!