-4

I did a script to have a good barplot with barplot() on R

Is it possible to have on the y-axis the % and not the quantity (number of observations) ? I would love to have the % without to change all of the script...

Thanks a lot

leo
  • 7,598
  • 6
  • 46
  • 67
nif
  • 39
  • 1
  • 1
  • 8

1 Answers1

0

ggplot has this option, but for barplot() I believe you will have to make a new variable that represents the percent and then feed that into barplot()

Andrew Taylor
  • 3,340
  • 1
  • 22
  • 46