Skip to contents

Scatterplot

Usage

x_point(w, x = "x", y = "y", fill = NULL, size = 1, line = FALSE)

Arguments

w

an xkcd widget object

x

x variable

y

y variable

fill

optional group variable mapped to dot fill

size

dot size

line

if dots should be connected by line

Examples

data.frame(
  x = rnorm(50),
  y = rnorm(50)
) |>
  x_chart() |>
  x_point(fill = "x") |>
  x_options(legend = FALSE)