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
Post a Comment