powered by
Create a density plot using plotcli. Short alias: pcld.
pcld
plotcli_density( x, plot_width = getOption("plotcli.plot_width", 80), plot_height = getOption("plotcli.plot_height", 40), x_label = "x", y_label = "Density", color = NULL, braille = getOption("plotcli.braille", TRUE), name = "density", ... )
A numeric vector of 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: "Density")
Color of the plot elements (default: NULL)
Use Braille characters for the plot (default: TRUE)
Name of the plot element (default: "density")
Additional arguments passed to the plotcli$new() function
x <- rnorm(100) plotcli_density(x)
Run the code above in your browser using DataLab