Re: [R] how to specify the location of tick mark on x axies

2008-02-17 Thread Jim Lemon
Xin wrote: Dear: I want to plot barplot and let bar be in the middle of each x axis category. Do you have this experience? Hi Xin, The barp function in the plotrix package centers the bars on integer values. This might make it a bit easier to do what you want. Jim

[R] how to specify the location of tick mark on x axies

2008-02-16 Thread Xin
Dear: I want to plot barplot and let bar be in the middle of each x axis category. Do you have this experience? Many Thanks! Xin [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] how to specify the location of tick mark on x axies

2008-02-16 Thread Duncan Murdoch
Xin wrote: Dear: I want to plot barplot and let bar be in the middle of each x axis category. Do you have this experience? Many Thanks! Xin [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] how to specify the location of tick mark on x axies

2008-02-16 Thread jim holtman
I think what you want for your last statement is: lines(pts, y2) This uses the value of the tick marks to plot your line. On Feb 16, 2008 6:53 AM, Xin [EMAIL PROTECTED] wrote: hi, I did barplot. My data are: y1-c(13, 20, 22, 19, 10, 16, 8, 4, 3, 5, 7, 4, 0, 4, 4, 2, 4, 2, 2, 5, 1)