Skip to content

Percentages in bar plot

3 messages · Naser Jamil, Rui Barradas, PIKAL Petr

#
Hello,

Try

barplot(table(stop)/sum(table(stop)))


Hope this helps,

Rui Barradas

Em 30-01-2013 11:34, Naser Jamil escreveu:
#
Hi

or use prop.table

barplot(prop.table(table(stop)))

Regards
Petr