Displaying 1 result from an estimated 1 matches for "juv_sum_by_quad".
2011 Nov 12
1
Subsetting data leads to funky plots
...ise
code I use:
Juv=read.csv("juvenile_density_20110506.csv")
Juv$count[Juv$count<0]<- NA #Missing data is imputed as negative data, so
first label it as NA
JuvFor=subset(Juv,(location==" 2 Outer 10 m") | (location==" 1 Outer 10
m")) #Subset the data of interest
Juv_Sum_by_quad=aggregate(count~year+location+quadrat_juvenile,data=
JuvFor,sum) # Calculate sum of each quadrat
Juv_Avg=aggregate(count~year+location,data=Juv_Sum_by_quad, mean)
#Calculate yearly means
So far so good.....
I thought I could do this:
plot(Juv_Sum1$year, Juv_Sum1$count,type="L")
But n...