search for: d_gw_elv

Displaying 2 results from an estimated 2 matches for "d_gw_elv".

2017 Nov 29
3
Removing a data subset
...to do it. Thank you David -------------------------------------------------------------- library(ggplot2) MyData <- read.csv("http://doylesdartden.com/ExampleData.csv", header=TRUE, sep=",") #Sets whic are detections and nondetects MyData$Detections <- ifelse(MyData$D_GW_Elv ==1, "Detected", "NonDetect") #Removes the NAs MyDataWONA <- MyData[!is.na(MyData$Detections), ] #does the plot p <- ggplot(data = MyDataWONA, aes(x=Year, y=GW_Elv , col=Detections)) + geom_point(aes(shape=Detections)) + ##sets the colors scale_colour_manual(value...
2017 Nov 29
0
Removing a data subset
...---------------------------------------- > > library(ggplot2) > > MyData <- read.csv("http://doylesdartden.com/ExampleData.csv", header=TRUE, > sep=",") > > > > #Sets whic are detections and nondetects > MyData$Detections <- ifelse(MyData$D_GW_Elv ==1, "Detected", "NonDetect") > > #Removes the NAs > MyDataWONA <- MyData[!is.na(MyData$Detections), ] > > #does the plot > p <- ggplot(data = MyDataWONA, aes(x=Year, y=GW_Elv , col=Detections)) + > geom_point(aes(shape=Detections)) + > >...