library(oce)
d <- read.csv("towyow.csv", header=TRUE)
towyow <- as.ctd(d$salinity, d$temperature, d$pressure)
casts <- ctdFindProfiles(towyow)
par(mfrow=c(length(casts), 3))
for (cast in casts) {
plotProfile(cast, "salinity")
plotProfile(cast, "temperature")
plotTS(cast, type='o')
}
Run the code above in your browser using DataLab