Re: [R] stacked barplot colour coding

2012-01-11 Thread Richard M. Heiberger
This graph would be easier under lattice graphics. biomass <- data.frame(bg=c(0.41, 0.37, 0.31, 0.32), ag=c(2.81, 2.91, 2.06, 2.39)) b2 <- stack(biomass) names(b2) <- c("mass", "type") b2$type <- factor(b2$type, levels=c("bg","ag")) b2$AB <- rep(c("A","A","B","B"), 2) b2$loca

Re: [R] stacked barplot colour coding

2012-01-11 Thread Jean V Adams
acacia21 wrote on 01/09/2012 07:01:28 PM: > Hi all, > i'm fairly new to R and its graphing, but having unsuccessfully 'googled' > and checked this forum to find answer to my problem, i'm posting my question > here. > > I'm trying to plot stacked barplot. I have simple data that looks like this

[R] stacked barplot colour coding

2012-01-09 Thread acacia21
Hi all, i'm fairly new to R and its graphing, but having unsuccessfully 'googled' and checked this forum to find answer to my problem, i'm posting my question here. I'm trying to plot stacked barplot. I have simple data that looks like this: bg ag 0.412.81 0.372.91 0.312