Skip to content
Prev 171740 / 398506 Next

problems with arrangement of figures by layout function

The plot of the tree uses base graphics (works with layout).  The histogram function is a lattice/trellis graph that uses grid graphics (at least the histogram function that I am aware of).

Unfortunately base and grid graphics do not play nicely together without some additional steps.  Some options to try:

Use the hist function (base graphics) instead of histogram.

Use the gridBase package (functions to help grid and base get along).

Use the plot function with the result of histogram and set the pos and newpage parameters and hope/experiment to get things to line up.

Pray for a miracle.


Hope this helps,