MonolixSuite in R
Breadcrumbs

setPlotPreferences

Set preferences to customize plots When preferences are Set, the updated preferences will used in all the plots

Set preferences to customize plots When preferences are Set, the updated preferences will used in all the plots

Usage

R
setPlotPreferences(update = NULL)

Arguments

update list containing the plot elements to be updated.

Details

This function creates a theme that customizes how a plot looks, i.e. legend, colors fills, transparencies, linetypes an sizes, etc. For each curve, list of available customizations:

  • color: color (when lines or points)

  • fill: color (when surfaces)

  • opacity: color transparency

  • radius: size of points

  • shape: shape of points

  • lineType: linetype

  • lineWidth: line size

  • legend: name of the legend (if NULL, no legend is displayed for the element)

See also

getPlotPreferences resetPlotPreferences

Examples

R
if (FALSE) {
  getPlotPreferences()$obs[c("color", "legend")]
  update = list(obs = list(color = "green", legend = "Observation"))
  setPlotPreferences(update = update)
  getPlotPreferences()$obs[c("color", "legend")]
}