Plots a lassie
object as a tile plot using
the ggplot2 package. Only available for bivariate association.
# S3 method for lassie
plot(
x,
what_x = "local",
digits = 3,
low = "royalblue",
mid = "gainsboro",
high = "firebrick",
na = "purple",
text_colour = "black",
text_size,
limits,
midpoint,
...
)
lassie
S3 object.
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
).
integer indicating the number of decimal places.
colour for low end of the gradient.
colour for midpoint of the gradient.
colour for high end of the gradient.
colour for NA values.
colour of text inside cells.
integer indicating text size inside cells.
limits of gradient.
midpoint of gradient.
other arguments passed on to methods. Not currently used.
lassie