Uses the output from the rvn_rvi_connections
function to generate the plot
with the DiagrammeR
library.
Note that the output can be plotted using the render_graph
function
in the DiagrammeR library. The outputted DiagrammeR object may also have aesthetics modified
with various commands from the
same library, if desired, as shown in the examples. The rsvg
and DiagrammeRsvg
packages
may be required to export to PDF with desired results,
but are not explicit dependencies of RavenR.
sv_omit
is used to reduce the clutter in the process plot of state variables that
one may wish to omit from the plot.
The function uses the functionality from ggrepel
to repel labels from one another.
The degree of separation in the labels can be controlled by the repel_force
and
lbl_size
parameters (increasing either will increase the separation between labels).
The repel_force
may range from approximately 1 to 1e-6. The lbl_size
is a
relative estimate of the label height (default 0.5), which is used in estimating the label
size in the repel functionality. Providing a larger number will increase the perceived size
of the label in the repel functionality and tend towards more separation between labels, and
vice-versa. Both of these parameters may need to change depending on the plot size and number
of labels. The lbl_height
and lbl_width
parameters can be changed to affect
the height and relative width of the actual labels.
The basic model structure outline is followed, but unrecognized state variables are plotted
on the left hand side of the plot (determined with internal RavenR function rvn_rvi_process_layout
).