Skip to main content
Skip table of contents

setPlotPreferences

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)

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")]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.