Skip to content

Adding vertical line to histogram and qplot "stacked" plot

3 messages · Jason Rupert, Felipe Carrillo, Duncan Murdoch

#
Jason:
Check Hadley's page, there's a few examples there. Good luck

http://had.co.nz/ggplot2/geom_vline.html

Felipe D. Carrillo  
Supervisory Fishery Biologist  
Department of the Interior  
US Fish & Wildlife Service  
California, USA
--- On Thu, 1/29/09, Jason Rupert <jasonkrupert at yahoo.com> wrote:

            
#
On 1/29/2009 2:03 PM, Jason Rupert wrote:
Are you using ggplot2?  It uses that notation of adding elements to a 
plot.  Classic graphics doesn't, so you would just give the different 
commands separately on each line, e.g.

hist(data_dataframe, breaks = breaks,  col = "dodgerblue3", xlab="Data", 
freq = TRUE, main="")

abline(v = HighVal, col = "dodgerblue3", lty="dotdash")