Skip to content
Prev 377331 / 398502 Next

HISTOGRAM

Hello,

You probably want a bar plot, not a histogram.

old.sci <- options(scipen=999)
with(mydata, barplot(number, space = 0, names.arg = name, beside = TRUE))
options(scipen = old.sci)


#-----------------

mydata <- read.table(text = "
name number
ds    6277
lk     24375
ax    46049
dd    70656
az    216544
df     220620
gh    641827
", header = TRUE)
mydata


Hope this helps,

Rui Barradas

?s 18:45 de 09/11/2018, Medic escreveu: