[R] Help with plot Grouped Bar Plot by using R
Jim Lemon
jim at bitwrit.com.au
Tue Mar 6 09:03:03 CET 2012
On 03/06/2012 03:49 PM, R_beginner_starter wrote:
> My input file:
> ...
> http://r.789695.n4.nabble.com/file/n4448762/ScreenHunter_01_Mar._06_12.42.jpg
Hi R_beginner_starter,
If you don't really need the 3D effect, you can get more or less that
plot with this (br is your data):
library(plotrix)
barp(t(br[,c(2,4)]))
However, this is not a very good looking plot. Perhaps if you did this:
barp(log(rbind(br[,2]+1,br[,4])),height.lab=c(0,10^c(5,10,15,20)))
it might be more informative. You can get a 3D effect with barp, but I
don't think it would add much.
Jim
More information about the R-help
mailing list