Re: [R] A very basic line-plot question

2011-02-17 Thread Phil Spector
The reason that it's easy to produce dotcharts or barplots in R with data like yours, and difficult to produce a line plot, is because dotcharts and barplots are appropriate for your data, whereas a line plot is not. Since the values on the x-axis represent names, and those names are not measur

Re: [R] A very basic line-plot question

2011-02-17 Thread Jinyan Huang
dat<-c(150,152,155,134,141) plot(dat,type="o",ylim=c(100,160),xlab="Names",ylab="Height") On Thu, Feb 17, 2011 at 7:45 PM, world peace wrote: > Hi All > > I have data like this > >              tom   randy mike dan doug > height       150   152     155  134 141 > > I am trying to create a line pl