powered by
Short version of plotcli_scatter function.
pclis( 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", ... )
A numeric vector of y values
A numeric vector of x values
Width of the plot (default: 80)
Height of the plot (default: 40)
Label for the x-axis (default: "x")
Label for the y-axis (default: "y")
Color of the plot elements (default: NULL)
Use Braille characters for the plot (default: TRUE)
Name of the plot element (default: "scatter")
Additional arguments passed to the plotcli$new() function
x <- rnorm(100) y <- rnorm(100) pclis(x, y)
Run the code above in your browser using DataLab