1

绘制频率表时是否有任何选项,例如 log='y'。我的代码如下:

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

但是它不能显示对数。错误信息是:

Warning messages:
1: In plot.window(...) :
  nonfinite axis limits [GScale(-inf,7.0814,2, .); log=1]
2: In axis(...) : "log" is not a graphical parameter

谢谢!

4

1 回答 1

1

也许你想做这样的事情:

plot(as.numeric(names(freq)),as.numeric(freq),log='y',xlab='',ylab='freq')
于 2013-08-10T17:51:36.587 回答