[R] Barplot

From: Mohsen Jafarikia <jafarikia_at_gmail.com>
Date: Mon 02 Oct 2006 - 15:14:29 GMT


Hello,

I have used the following data to draw my barplot:

BL LR Q

36.35    1.00   1.92
36.91    4.00   0.00
25.70    6.00   0.00
34.38    3.00   1.92
05.32    0.50   0.00

 BL<-c(36.35, 36.91, 25.70, 34.38, 05.32) LR<-c(1.00, 4.00, 6.00, 3.00, 0.50)
Q<-<(1.92, 0.00, 0.00, 1.92, 0.00)

barplot(dt$LR, main='LR Value', col='orange', border='black', space=0.05, width=(dt$BL), xlab='Length', ylab='LR')

 axis(1)

I would like to do the following things that I don't know how to do it:

  1. Writing the value of each 'BL' on my X axis.
  2. Writing the value of 'Q' on the bottom of X axis.
  3. Draw a line on the bars which connects the 'LR' values.

 I appreciate your comments.

 Thanks,
Mohsen

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Oct 03 01:17:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 02 Oct 2006 - 17:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.