This might be an easy question to answer which has been frustrating me a lot recently. My ultimate goal is to overlay observational length data onto my length graph from the model. I have a model that functions by time - written as follows:
times <-seq(1, nrow(Mussel_Water_Data),1)
I could use 730
instead of nrow(Mussel_Water_Data)
because that's how many observations I have in the data set to run the model (daily water temp, etc.). However, my length data has only 455
observations. Hence, the discrepancy.
I pulled my length data from the data set:
Mussel_Daily_LengthAS=data.frame(Mussel_Daily_Length$AS_length)
finished the model:
sol <- ode(state, times, Deb, param)
And then I tried to plot it:
plot(sol, which = "L", obs= Mussel_Daily_Length$AS_length)
and I get the following error message:
Error in obs[, 1] : incorrect number of dimensions
My question is: how would I be able to plot the two even tho I have different numbers of observations?
Thanks!