[R] Help barplots

Jim Lemon jim at bitwrit.com.au
Thu Jun 3 12:28:43 CEST 2010


On 06/03/2010 01:27 AM, khush ........ wrote:
> Hi all,
>
> I want to draw a arrow (small) of any length along with OsCYP right side i.e
> parrallel and antiparallel arrows both
>
>   text(os[1], 10.2,  pos = 4, "OsCYP", font=1, cex = 1,  col = "red")
>
> and
>
> how can I connect two points with dotted line lets say
>
> bp[1 ]10.2 ---------------------------------------- bp[3], 15.2
>
> how to make a dotted line using R, is it possible
>
Hi khush,

I'm not sure what you want to do with the arrows, but look at the 
"arrows" function.

for the second one, look at the "segments" function, and the "lty" argument.

segments(10.2,y,15.2,y,lty=2)

It also helps if you change the subject line when you ask a new question.

Jim



More information about the R-help mailing list