Displaying 1 result from an estimated 1 matches for "xmatr".
Did you mean:
xmat
2009 Mar 11
0
Working up examples of barplots with customized marginal items
...r is great", srt=90)
text (barPositions[8], 5, "but 8 is greater", srt=90)
### Recently I had the problem of drawing a "clustered" bar chart.
### Lets suppose our x variable really represents responses from
### 2 groups of respondents, Men and Women.
## Create the matrix
xmatr <- matrix(x, nrow=5)
### Use beside=T to cause barplot to treat each column
### of values as a group
barplot(xmatr, beside=T, names=c("Men","Women"))
valueNames <- c("Very Strong","Somewhat Strong","Not Strong","Somewhat
Weak",&quo...