plot.lassie: Plot a lassie object

View source: R/lassie.R

plot.lassieR Documentation

Plot a lassie object

Description

Plots a lassie object as a tile plot using the ggplot2 package. Only available for bivariate association.

Usage

## S3 method for class 'lassie'
plot(
  x,
  what_x = "local",
  digits = 3,
  low = "royalblue",
  mid = "gainsboro",
  high = "firebrick",
  na = "purple",
  text_colour = "black",
  text_size,
  limits,
  midpoint,
  ...
)

Arguments

x

lassie S3 object.

what_x

vector specifying values to be returned:

  • 'local': local association measure values (default).

  • 'obs': observed probabilities.

  • 'exp': expected probabilities.

  • 'local_p': p-value of local association (after running permtest or chisqtest).

digits

integer indicating the number of decimal places.

low

colour for low end of the gradient.

mid

colour for midpoint of the gradient.

high

colour for high end of the gradient.

na

colour for NA values.

text_colour

colour of text inside cells.

text_size

integer indicating text size inside cells.

limits

limits of gradient.

midpoint

midpoint of gradient.

...

other arguments passed on to methods. Not currently used.

See Also

lassie


oliviermfmartin/zebu documentation built on Sept. 1, 2023, 9:12 p.m.