search for: d_chlorid

Displaying 3 results from an estimated 3 matches for "d_chlorid".

Did you mean: d_chloride
2017 Oct 05
0
Adding non-data line to legend ggplot2 Maximum Contaminant Level
...ot;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://doylesdartden.com/Stats/TimeSeriesExample.csv", sep=",") MyData$Detections <- ifelse(MyData$D_Chloride ==1, "Detected", "NonDetect") dat1 <-? MyData[, c(1, 3, 4, 6)] dat2 <-? dat1[, c(1,2)] dat2$Detections <-? rep("SMCL", nrow(dat2)) dat$Chloride <-? rep(250, nrow(dat2)) dat3 <-? rbind(dat1, dat2) p <-? ggplot(dat3, aes(Year, Chloride, colour =...
2017 Sep 26
2
Adding non-data line to legend ggplot2 Maximum Contaminant Level
...ou in advance David #Loads the ggplot2 package. library(ggplot2) ##This loads your data from your worksheet MyData <-read.csv("http://doylesdartden.com/Stats/TimeSeriesExample.csv", sep=",") #Sets which are detections and nondetects MyData$Detections <- ifelse(MyData$D_Chloride ==1, "Detected", "NonDetect") #does the plot p <- ggplot(data = MyData, aes(x=Year, y=Chloride , col=Detections)) + geom_point(aes(shape=Detections)) + #sets the detect vs. non-detect colors scale_colour_manual(values=c("black","red")) + #sets...
2017 Oct 01
0
Adding non-data line to legend ggplot2 Maximum Contaminant Level
...ou in advance David #Loads the ggplot2 package. library(ggplot2) ##This loads your data from your worksheet MyData <-read.csv("http://doylesdartden.com/Stats/TimeSeriesExample.csv", sep=",") #Sets which are detections and nondetects MyData$Detections <- ifelse(MyData$D_Chloride ==1, "Detected", "NonDetect") #does the plot p <- ggplot(data = MyData, aes(x=Year, y=Chloride , col=Detections)) + ? geom_point(aes(shape=Detections)) + ? #sets the detect vs. non-detect colors ? scale_colour_manual(values=c("black","red")) + ? #sets...