plotcli_scatter {plotcli}R Documentation

Scatter plot using plotcli

Description

Create a scatter plot using plotcli. Short alias: pclis.

Usage

plotcli_scatter(
  y,
  x = NULL,
  plot_width = getOption("plotcli.plot_width", 80),
  plot_height = getOption("plotcli.plot_height", 40),
  x_label = "x",
  y_label = "y",
  color = NULL,
  braille = getOption("plotcli.braille", TRUE),
  name = "scatter",
  ...
)

Arguments

y

A numeric vector of y values

x

A numeric vector of x values

plot_width

Width of the plot (default: 80)

plot_height

Height of the plot (default: 40)

x_label

Label for the x-axis (default: "x")

y_label

Label for the y-axis (default: "y")

color

Color of the plot elements (default: NULL)

braille

Use Braille characters for the plot (default: TRUE)

name

Name of the plot element (default: "scatter")

...

Additional arguments passed to the plotcli$new() function

Examples

x <- rnorm(100)
y <- rnorm(100)
plotcli_scatter(x, y)

[Package plotcli version 0.1.0 Index]