Re: [R] Adding non-data line to legend ggplot2 Maximum Contaminant Level

2017-10-05 Thread John Kane via R-help
Well, here is one way but it seems a bit clumsy. In words, I created a new data.frame with "250" in the Chloride vector and "SMCL" in the Detections vector and supplessed one legend. Warning: For my convenience I am using different data.frame names . library(ggplot2) MyData <-read.csv("http://

Re: [R] Adding non-data line to legend ggplot2 Maximum Contaminant Level

2017-10-01 Thread John Kane via R-help
I just glanced at the problem but I think you would have to create a new variable to replace the hline. What about adding some text annotation in the graph instead? On Tuesday, September 26, 2017, 3:51:46 PM EDT, David Doyle wrote: Hello everyone, I have a plot showing chloride con

[R] Adding non-data line to legend ggplot2 Maximum Contaminant Level

2017-09-26 Thread David Doyle
Hello everyone, I have a plot showing chloride concentrations for various point over time. I also have a dotted line that show the Secondary Maximum Contaminant Level (my screening limit) on the graphs at 250 mg/L. But I can not figure out how to include the dotted line / Secondary Maximum Contam