Streudiagrammgitter

Wenn Sie Streudiagramme für mehrere Variablenpaare gleichzeitig in einem Gitterlayout anlegen wollen, können Sie das mit der Funktion splom() realisieren:

splom(x, data,
      auto.key = FALSE,
      aspect = 1,
      between = list(x = 0.5, y = 0.5),
      panel = lattice.getOption("panel.splom"),
      prepanel, scales, strip,
      groups,
      xlab, xlim,
      ylab = NULL, ylim,
      superpanel = lattice.getOption("panel.pairs"),
      pscales = 5,
      varnames,
      drop.unused.levels,
      ...,
      lattice.options = NULL,
      default.scales,
      subset = TRUE)

Die eigentliche Arbeit wird wie üblich von einer Panel-Funktion verrichtet, hier ist das panel.splom():

panel.splom(...)

Get R in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.