# Data with only continuous stage and one habitat
dff <- generateData()
dff$fec[dff$fec==0] <- NA
cv1 <- makeClonalObj(dff, Formula = fec~size, Transform = "log")
Cmatrix <- createIPMCmatrix(clonalObj = cv1, nBigMatrix = 20,
minSize = min(dff$size, na.rm = TRUE), maxSize = max(dff$size, na.rm = TRUE))
slotNames(Cmatrix)
image(Cmatrix@meshpoints, Cmatrix@meshpoints, t(Cmatrix),
xlab = "Continuous (e.g. size) stage at t",
ylab = "Continous (e.g. size) stage at t+1")
Run the code above in your browser using DataLab