Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data <- c(15,320,7,0,19,0)
- table <- matrix(data, nrow=2, ncol=3, byrow=T)
- barplot (prop.table(table,2)*100),
- col = ifelse(prop.table(table,2)[1,]>=.99, c("green","gray"),c("red","gray")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement