andy-iskauskas / hmer

An R package for Bayes Linear emulation and history matching.
Other
16 stars 3 forks source link

Some plotting suggestions #12

Closed tjmckinley closed 1 year ago

tjmckinley commented 1 year ago

Here there are two commits, the first relates to the fact that simulator_plot() fails if you only have a single output. The drop = FALSE part fixes the pivot (else it returns a pivoted table with nonsensical output names). Then I've added a prototype beeswarm plot for examining the evolution of a single output across waves. I tried a few things, but this seemed to work better. It adds another dependency package (ggbeeswarm). See what you think.

The second adds a contour argument to plot_lattice(), which allows the user to remove the black contour lines from the minimum implausibility plot if required. This is because for e.g. narrow regions of non-implausibility the contour plots obscure the underlying colours and hence you can't make out the region clearly, so this adds a simple TRUE/FALSE option to plot this or not.

I haven't added this to any other plot functions (such as emulator_plot(), but one could do). Again, feel free to take these suggestions or not as you see fit.

Cheers, T