-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLandUseDistanceandDensityGraphs.R
29 lines (18 loc) · 1.14 KB
/
LandUseDistanceandDensityGraphs.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
##### Land Use Distances and Density Graphs #########
GIS_Info <- read.csv(file = "Data/SiteDistances_Edited.csv", stringsAsFactors = FALSE)
GIS_Info_NoOutliers <- read.csv(file = "Data/LandUse_NoOutliers.csv", stringsAsFactors = FALSE)
plot(GIS_Info$Pasture, GIS_Info$CPIC_Density)
abline(lm(GIS_Info$CPIC_Density ~ GIS_Info$Pasture, col = "red"))
plot(GIS_Info_NoOutliers$Pasture, GIS_Info_NoOutliers$CPIC_Density)
abline(lm(GIS_Info_NoOutliers$CPIC_Density ~ GIS_Info_NoOutliers$Pasture, col = "red"))
plot(GIS_Info$Development, GIS_Info$CPIC_Density)
abline(lm(GIS_Info$CPIC_Density ~ GIS_Info$Development, col = "red"))
plot(GIS_Info_NoOutliers$Development, GIS_Info_NoOutliers$CPIC_Density)
abline(lm(GIS_Info_NoOutliers$CPIC_Density ~ GIS_Info_NoOutliers$Development, col = "red"))
plot(GIS_Info$Cultivated.Crops, GIS_Info$CPIC_Density)
abline(lm(GIS_Info$CPIC_Density ~ GIS_Info$Cultivated.Crops, col = "red"))
plot(GIS_Info$Pasture, GIS_Info$CPIC_Density)
abline(lm(GIS_Info$CPIC_Density ~ GIS_Info$Pasture, col = "red"))
plot(GIS_Info$Potomac, GIS_Info$CPIC_Density)
abline(lm(GIS_Info$CPIC_Density ~ GIS_Info$Potomac, col = "red"))
remove.outliers