I have two vectors with different lengths in R, which contains integer number only (1,2,3,4,5). I want to plot histogram of them (in percentage, not in count) one by one.
I tried to use
x1 <- round(runif(1000, 1.0, 5.0), digits=0)
x2 <- round(runif(100, 1.0, 5.0), digits=0)