R frequency table plot y-axis logarithm scale -


is there option such log='y' when plotting frequency table. code following:

df = read.table(myfile, header=f, sep=',') freq = table(df[[1]]) # make frequency table first column plot(freq, log='y') 

however cannot display logarithm. error message :

warning messages: 1: in plot.window(...) :   nonfinite axis limits [gscale(-inf,7.0814,2, .); log=1] 2: in axis(...) : "log" not graphical parameter 

thanks!

maybe want this:

plot(as.numeric(names(freq)),as.numeric(freq),log='y',xlab='',ylab='freq') 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -