Re: [R] bar plot stacked

2014-06-19 Thread Jim Lemon
On Thu, 19 Jun 2014 01:42:30 PM message wrote: > Readers, > > For data set: > > a, 90, 10 > b, 60, 40 > c, , > d, , 50 > > A plot was attempted: > > dataset<-as.matrix(read.csv("datafile.csv",header=FALSE)) > barplot<-(dataset,horiz=TRUE) > > A warning message is returned, about NAs introduced

Re: [R] bar plot stacked

2014-06-19 Thread William Dunlap
> dataset<-as.matrix(read.csv("datafile.csv",header=FALSE)) You should always inspect the dataset immediately after reading it in, before doing other manipulations on it. Converting data from one format to another is always going to be error-prone. Plotting it, say with pairs() or just plot(), i

Re: [R] bar plot stacked

2014-06-19 Thread Bart Kastermans
On 19 Jun 2014, at 15:42, message wrote: > Readers, > > For data set: > > a, 90, 10 > b, 60, 40 > c, , > d, , 50 > > A plot was attempted: Wonder who attempted this. :-) > > dataset<-as.matrix(read.csv("datafile.csv",header=FALSE)) Look at your dataset; I’d say it is clearly not what you w

[R] bar plot stacked

2014-06-19 Thread message
Readers, For data set: a, 90, 10 b, 60, 40 c, , d, , 50 A plot was attempted: dataset<-as.matrix(read.csv("datafile.csv",header=FALSE)) barplot<-(dataset,horiz=TRUE) A warning message is returned, about NAs introduced by coercion and an undesirable graph. The desired output is something simi