# Read one plant:
myplant <- constructplant("sompfile.p","somelfile.l")
# Pfile was in cm - should be in mm. Multiply all length dimensions by 10.
myplant <- constructplant("sompfile.p","somelfile.l", multiplier=10)
# Read a couple of plants.
myplants <- constructplant(pfiles=c("plant1.p","plant2.p"), lfiles=rep("leaf.l",2))Run the code above in your browser using DataLab