Skip to content
Prev 308871 / 398506 Next

plotting multiple variables in 1 bar graph

Hi

see in line
<snip>
Not exactly. VADeaths is a matrix not a single variable.
num [1:5, 1:4] 11.7 18.1 26.9 41 66 8.7 11.7 20.3 30.9 54.3 ...
 - attr(*, "dimnames")=List of 2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ..$ : chr [1:5] "50-54" "55-59" "60-64" "65-69" ...
  ..$ : chr [1:4] "Rural Male" "Rural Female" "Urban Male" "Urban Female"
See ?barplot help page for details.

Regards
Petr