Re: [R] line plot over a barplot

2012-03-16 Thread Petr PIKAL
Hi > > Dear all, > > I have data in the following format : > X-axisY-axis > <010% > 0-20 20% > 20-4030% > 40-6040% > . and so on. > I want to plot a bar graph of the above. Also I would want to add a > trendlin

Re: [R] Line Plot with Dates on X-axis

2010-01-20 Thread mah
Thank you - zoo did exactly what I needed... On Jan 20, 12:20 pm, Henrique Dallazuanna wrote: > Try the zoo package: > > plot(as.yearqtr(time.val), inc, col = 'red', type = 'l') > > > > On Wed, Jan 20, 2010 at 3:41 PM, mah wrote: > > I am trying to generate a line graph with quarterly time bucke

Re: [R] Line Plot with Dates on X-axis

2010-01-20 Thread Henrique Dallazuanna
Try the zoo package: plot(as.yearqtr(time.val), inc, col = 'red', type = 'l') On Wed, Jan 20, 2010 at 3:41 PM, mah wrote: > I am trying to generate a line graph with quarterly time buckets (with > nice labels) on the x-axis.  The first block of code below will > generate the graph with nicely fo

Re: [R] line plot

2009-08-19 Thread John Kane
Do you mean a dotchart? Example #== aa <- c(3,6,3,5,8) lbs <- LETTERS[1:5] dotchart(aa, pch=(16), col = 1:5, main="A Dotchart") axis(side = 2, seq_along(aa), lbs, las=1) #==

Re: [R] line plot

2009-08-19 Thread Jorge Ivan Velez
Dear Rafael, Here is a suggestion using plot(): set.seed(123) x <- rpois(100,10) plot(table(x)) HTH, Jorge On Wed, Aug 19, 2009 at 2:11 PM, Rafael Moral <> wrote: > Dear useRs, > > How can I draw a barplot, but instead of bars, I'd get lines? > > Thanks, > Kind regards, > Rafael. > > > > >