Skip to content

PLOTTING ODE MODEL RESULTS USING PLOT.DESOLVE FROM THE DESOLVE PACKAGE

2 messages · Mariam Idowu, Jeff Newmiller

#
Hi Everyone,

I trust this email finds you well, I am currently running an ODE model
using the plot.desolve method from the deSolve package. For context my
model is a box model with 75 boxes, therefore for each variable I will get
75 outputs.  I am currently comparing the results of my model
to observations, however adding a legend to each of these outputs seems to
be very difficult. The legend only appears at the last output which is the
75th box.
Does anyone know how this can be fixed?

Furthermore, I want to also add an RMSE metric that compares the distance
between my scenarios and observations using the deSolve package to quantify
how much the model has trailed away from the observations. I checked the
vignettes but did not see this incorporated.

Mariam.
#
a) Do be sure to read the Posting Guide... for example changes to contributed packages is appropriate for communicating directly to the maintainer or via the recommended forum for that contributed package. Also, you will avoid mis-communication more reliably if you follow the guide recommendation to post your email using plain text (a setting in your email program).

b) I highly recommend that you extract the data that these convenience functions are using as input and making the plots and summary metrics that you want to see yourself. This will give you fastest results, and will provide a basis for a conversation about package enhancement with the maintainer of the package.
On March 25, 2025 7:02:30 AM PDT, Mariam Idowu <mariamoidowu1 at gmail.com> wrote: