Re: [R] Matrix barplot

2008-07-25 Thread Andreas Tille
lot(data.mat,beside=TRUE) As I said this works great - but now I would like to use the table heading as legend - and have no idea how to access the header (see below) -Original Message- On Behalf Of Andreas Tille Sent: Friday, July 25, 2008 8:14 AM To: r-help@r-project.org Subject: [R] Ma

Re: [R] Matrix barplot

2008-07-25 Thread Andreas Tille
On Fri, 25 Jul 2008, Jim Lemon wrote: library(plotrix) Well, if I try this in the example of the previous poster I get nicely rendered fonts - which is the only difference I noticed. # barp groups data in columns, not rows, so transpose barp(t(atdat[,2:4]),names.arg=atdat[,1],col=2:4) Whil

Re: [R] Matrix barplot

2008-07-25 Thread ajay ohri
As a beginner also try downloading the rattle GUI , with all dependecies =true , or R Cmdr GUI.. these are both packages go to rattle.togaware.com for the rattle instructions and installations .its very very user friendly even though the purists think its infra dig.(kidding- Friday humour) Reg

Re: [R] Matrix barplot

2008-07-25 Thread Andreas Tille
On Fri, 25 Jul 2008, Nutter, Benjamin wrote: data <- data.frame(Year=c(2000,2001,2002), A=c(4,2,1), B=c(3,1,2), C=c(0,3,5)) data.mat <- as.matrix(data)[,2:4] rownames(data.mat) <- data$Year data.mat <- t(data.mat) barplot(data.mat,be

Re: [R] Matrix barplot

2008-07-25 Thread Jim Lemon
On Fri, 2008-07-25 at 14:13 +0200, Andreas Tille wrote: > Hi, > > as a bloody R beginner I failed to solve the probably simple problem > to create a barplot of the following data read from a file > > Year A BC > 2000 4 30 > 2001 2 13 >

Re: [R] Matrix barplot

2008-07-25 Thread Nutter, Benjamin
RUE) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Tille Sent: Friday, July 25, 2008 8:14 AM To: r-help@r-project.org Subject: [R] Matrix barplot Hi, as a bloody R beginner I failed to solve the probably simple problem to create a barplot of the

[R] Matrix barplot

2008-07-25 Thread Andreas Tille
Hi, as a bloody R beginner I failed to solve the probably simple problem to create a barplot of the following data read from a file Year A BC 2000 4 30 2001 2 13 2002 1 25 The Barplot should look like 5 |