Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A common way to visualize the distribution of a column in R is by creating a histogram using the hist() function.

For example:

# Create a vector of values
x <- c(1,2,3,4,5,6,7,8,9,10)

# Create a histogram
hist(x)

This would create a histogram with 10 bins showing the distribution of the vector x. Other options and adjustments can be made using the hist() function, such as changing the number of bins, adding labels and titles, and adjusting the color and style of the histogram.