[R] Adding Lines to Plot

markleeds at verizon.net markleeds at verizon.net
Sun Jul 9 01:39:22 CEST 2006


>From: justin rapp <jdrapp at gmail.com>
>Date: Sat Jul 08 14:05:12 CDT 2006
>To: r-help at stat.math.ethz.ch
>Subject: [R] Adding Lines to Plot

i'm not definite on this and even
if it works , it;s not the most
efficient
but

abline(h=10)
abline(h=20)
abline(h=30)
etc

i'd be curious if that works on a bar plot
because i don't use bar plots. someone else will answer that knows
more than me. i just like to try to help out once in a while because
i get soooo much help form this list.









>This seems like a question that I should be able to answer on my own
>but after looking at the documentation I cannot seem to find the
>correct method.
>
>How do I add lines to a bar plot that extend from the vertical axis?
>For example, my vertical axis is numbered in increments of 10 and I
>would like these to go across the whole graph.
>
>Also, is there a way to have R label the value of each bar so that I
>know the value of each factor that is being plotted?
>
>Thanks in advance.
>
>jdr
>
>______________________________________________
>R-help at 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



More information about the R-help mailing list