It should be a simple question ... I'm just trying to make a barcode from a vector to R, but I want the values โโdisplayed in a logarithmic scale with marks and labels on the y axis. I can make a regular barcode just fine, but when I try to use a magazine or label, everything goes south.
Here is my current code:
samples <- c(10,2,5,1,2,2,10,20,150,23,250,2,1,500) barplot(samples)
Ok, that works. Then I try to use the log="" function defined in the barplot manual and it never works. Here are some dumb attempts I tried:
barplot(samples, log="yes") barplot(samples, log="TRUE") barplot(log=samples)
Can someone please help me here? In addition, the marking will be excellent. Thanks!
r label axis bar-chart
jake9115
source share