powered by
Short version of plotcli_bar function.
pclib( 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 = "barplot", ... )
A numeric vector of values
A vector of categories
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: "barplot")
Additional arguments passed to the plotcli$new() function
x <- 1:5 y <- c(10, 15, 8, 12, 6) pclib(x, y)
Run the code above in your browser using DataLab