create a bar graph out of the elements in an array in r

# Sample array
data <- c(10, 20, 15, 25, 30)

# Create a bar graph
barplot(data, names.arg = 1:length(data))
109 chars
6 lines

related categories

gistlibby LogSnag