Skip to content

Commit

Permalink
Update chla_ts.R
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmedina committed May 20, 2024
1 parent bbc9c0c commit 521c0c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/chla_ts.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ load(file = here::here('data-clean/epcwq_clean.RData'))

subsegs <- c("NW","NE","CW","CE","SW","SE")

par(mfrow=c(3,2), mar=c(4,4,3,1))

# Plot data and annual averages over time at each OTB subsegment
png("../figs/chl_ts.png", res = 400, units = 'in', width = 10, height = 8 )
par(mfrow=c(3,2), mar=c(4,4,3,1))
for( i in 1:length(subsegs) ){

this.dat <- epcwq3[ which( epcwq3$subseg==subsegs[i] &
Expand Down Expand Up @@ -48,9 +49,12 @@ for( i in 1:length(subsegs) ){
col = rgb(0.8,0.1,0,1), bg = rgb(1,1,1,1) )

}
dev.off()


# Plot data by month-of-year with monthly averages at each OTB subsegment
png("../figs/chl_mo.png", res = 400, units = 'in', width = 10, height = 8 )
par(mfrow=c(3,2), mar=c(4,4,3,1))
for( i in 1:length(subsegs) ){

this.dat <- epcwq3[ which( epcwq3$subseg==subsegs[i] &
Expand Down Expand Up @@ -104,6 +108,7 @@ for( i in 1:length(subsegs) ){
col = rgb(0.8,0.1,0,1), bg = rgb(1,1,1,1) )

} # // end i loop
dev.off()



0 comments on commit 521c0c6

Please sign in to comment.