I have a frequency distribution with a long tail and to make better use of the plot real state I draw a logarithmic plot. (The data below is for the sake of presentation)
freqs=c(0.7, 0.2, 0.05, 0.01, 0.001)
x=0:(length(freqs)-1)
df=data.frame(x=x, y=freqs)
library("ggplot2")
ggplot(df) +
geom_bar(mapping = aes(x = x, y = y),stat = "identity")+ scale_y_log10()
But then since the numbers are smaller than one, the logarithms will be negative and so the bars are upside down. Any way to go around this?